I changed my site from HTML to PHP and I need to get some help.
-
Ok...so the other day I went from HTML to PHP in every part of my website. I want to know the best option for me for redirecting my pages from HTML to php. I had my site scanned with SEOMoz and I was given many 404 errors which is not at all good.
I do not have any pages of my site linking to any of these html pages. All of the site links have been updated. I have checked 3 times.
I have never created a robots.txt file so I would love to get a little help with this part.
I was thinking it would be best to tell Google not to worry about these pages in the file.
I kept the pages up and I plan to remove all code with them so that no content shows up if someone visits but the issue with that is my site is already indexed as HTML.
I want to have the HTML pages redirect to the PHP without worrying that my visitors will land on my site via Google onto an HTML page.
I hope I am making sense.
What is the best advice you can give me. I need all pages to redirect to PHP.
I used an htaccess redirect from all HTML to PHP but when I get so many of them added I get an error on my site saying too many redirects.
Seriously need help.
-
I did that. I changed all my pages to php but my site is indexed in Google for HTML which when they land is not showing anymore because I deleted the .html files.
I need to know the right way to make google index my php pages in replace of the html.
I do not want to get penalized for dup content being that there is a about.php and about.html.
They both have the same content. I also do not want google to think the pages are gone and penalize me for missing or uncrawlable pages.
-
Why are you redirecting .html to .php why dont you just permanently change the endings of the pages to .php?
-
Will the SEOMoz.com team please answer this question. It is sort of important.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Does no-follow for pages affect site ranking?
Hey, I have a question. On my site, it's divided into the main site and the blog is in a subfolder of same domain. Within the main site (same domain), there are MANY checkout pages and other internal pages we use though all with "NO FOLLOW" on each. Despite it having "NO FOLLOW", will it affect our blog rankings in any way or domain ranking?"
On-Page Optimization | | Mirian0 -
Site update and what to do about current keyword rank
Hi im in the process of giving my site a major update as its only one page and not responsive . The the new site will have a homepage with a list of my services with a small description of each and each service will link to its own page. My one page site at the moment ranks number one in my area for a low competition keyword (moz keyword score of 13%) of course this sends me very little traffic. With my new site im also going for more keywords but these will be Moz KWD 30% and 40%. I know this will be quite hard and take some time but i'm pretty sure I know what I need to do to get there. Now my question is what do i do with my current home page (only page) that ranks for that low comp keyword?
On-Page Optimization | | juun
I dont want to lose my rank for that, so do i make a new page on my new site that is optimized for that keyword, but then I don't want to 301 my homepage to that so I guess as its such an easy word to rank for my new page would soon rank for that? What are your thoughts and advice please, thanks in advance.1 -
Magento product pages - should they have a .php or .html?
Hi all, I'm using a plugin to do some SEO work on my Magento site It says this is an error: Product pages should have a suitable file type extension such as .php or .html I removed .html when I first set up my store because I though it looked more aesthetically pleasing, but does this have a negative effect on SEO? I can't find much information on this matter in my searches. Can anyone shed any light on this? Thank you, Laura
On-Page Optimization | | llj0 -
SEO For Replacement Site
I have a client with a website that has gotten a bit outdated. We've already built his new website and optimized it, but I'm trying to figure out the best way to replace the site while doing the least amount of damage to his current Google rankings. He's ranking #1 for some very competitive keywords that are responsible for the bulk of his revenue, so we want to jeopardize that. We've already built a new site and written all new content, although the homepage page title, h1 header and meta descriptions will all remain what they currently are. I'm also trying to keep the keyword density as close to the current site as possible. I am aware of transferring all existing site URLS using 301 redirects. Can anyone provide any tips that I should use when replacing the site? Should I expect a slight rankings drop or am I worrying about nothing?
On-Page Optimization | | atstickel0 -
Need w3c validation error solution
http://validator.nu/?doc=http%3A%2F%2Fwww.topnotchlawsuitloans.com Stray end tag head. An body start tag seen but an element of the same type was already open. Cannot recover after last error. Any further errors will be ignored.
On-Page Optimization | | JulieWhite0 -
Craw structure for web site about jobs?
Hi there, we have now a client who has a job offering web site.There are many craw errors in it. My question is how should the url structure in a jobs website look like and which pages should be indexed? What is the best way and tips for optimizing a job website? Now the posted jobs pages are dynamically like: examplejob.com/detail-job/1891222223/Careers-for-Mens---Womens/Experienced-Web-Design-Need I see many job websites allow their job offers to be indexed and may be this is useful because some people find jobs also when directly search in Google. Are they using dynamically urls for that? And also my related question is what happens when the job offer expires? When Google craws that page again should it be redirected to 404 page or the original job offer text should be there and just to be added info that this job offer has expired? Otherwise If only it's written that it has expired may be there will be too much duplicate content on many many pages.
On-Page Optimization | | vladokan0 -
Canonical Help?
This canonical thing is brand new to me and I'm trying to wrap my mind around it. Here is my situation: I use Wordpress. I am showing duplicate content with the following url's http://crosstrainingandfitness.com/online-workout-blog/ http://crosstrainingandfitness.com/online-workout-blog/page/2/ Would setting a canonical link solve this? If so, what do I put in the Canonical box for this category (online workout blog). I use Yoast's Wordpress SEO plugin. Any help is greatly appreciated.
On-Page Optimization | | carbbon0 -
How do I do a 301 Redirect in IIS 7 from http://www.freightmonster.com/index.html to http://freightmonster.com/index.html when I don't have a physical page to redirect?
I'm trying to get rid of my Rel Canonical links and use the 301 Redirect instead.
On-Page Optimization | | FreightBoy0