The correct way to go from PHP site to HTML site?
-
I have a website fully coded in PHP and I am doing a re-design over to an HTML site. I searched through the Q&A and there were some conflicting answers. Some said you will need to 301 all the pages. Others said to use the .htaccess to parse all the files as html.
What is the correct way I should go about this?
Thanks in advance!
-
Hi James,
As Cocoonfxmedia noted, it depends a good deal on your CMS situation.
For SEO purposes, there's no difference between PHP and HTML - search engines don't encounter PHP code, it occurs on the server and then the server sends the search crawler the HTML output.
I'd have to see the site in question to understand what would have to happen from a SEO standpoint to ensure things carry over smoothly, but in general I'd recommend focusing on ensuring that any page URLs that are linked to from other websites (Open Site Explorer is a good way to check on this) are 301 redirected to their best replacement URLs on the new site.
301 redirecting every single URL is not necessary. I'd focus on the URLs that have links from external websites. Search engines will adjust properly for the other pages, dropping the old URLs once they get a 404 error and finding/indexing the new pages from the top-level pages.
Best,
Mike -
"I personally think you can keep the PHP. The only reason I can see changing to HTML site is if you don't have a CMS system running"
The new site is already coded in HTML though - Is there just some code I can add to .htaccess to tell spiders that all PHP are not HTML?
Obviously I will need to change any internal/external links to the new extension. I want to make sure I cover all my bases and do this properly.
-
I personally think you can keep the PHP. The only reason I can see changing to HTML site is if you don't have a CMS system running. I would 301 redirect the old pages to the new.
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
-
What should my site name be?
Hello, I'm a physical therapy clinic in Fort Myers, FL. Currently my website is named "Physical Therapy Fort Myers". My company name is Back In Motion Sport & Spine Physical Therapy. My question is, should I rename my site under my business name or is it OK to keep it as "physical therapy fort myers"?
On-Page Optimization | | backinmotion1230 -
Is this site structure going to kill link juice?
http://www.sqlsentry.com/ This is a parallax type page and the navigation basically points you to the homepage every time. The sub-menu on the secondary pages only ushers you down the page to various topics. This design has concerned me for some time but I'd like another opinion.
On-Page Optimization | | Sika220 -
What is the best way to optimize industries served pages?
eg. abcwidgets.com/industries/durable-goods What kind of keywords should pages like these target? Primary service offered + industry name or the reverse order? Something else? Thanks for your feedback!
On-Page Optimization | | benjdonahower0 -
Moving from Local to National Audience - Ecommerce Site
I have an e-commerce site that was optimized for local results. We’ve been receiving traffic from all over the nation so recently we've decided to optimize the site for a more national audience by removing the local business indicators. I have below a list of things that I’ve done, I’m contemplating doing and other various questions. One note I want to make is that we offer installation services – which we would still like to rank locally for. I have done the following: Remove [city] from all of the title tags (except for the installation pages) Removed NAP (name, address, ph#) from site wide footer – I’m not sure if I should have done this. Inserted NAP at the bottom of the body content of the installation pages Questions Right now my installation pages are located in a sub-folder (ex: www.mydomain.com/installation-services). Should I create a sub-domain for installations (ex: city.mydomain.com/installation-services)? My thoughts are that it would make that sub-domain all about our installation services while keeping our root domain focused on our products and not dilute it with installations. However, this sub-domain will have less juicy juice. What should I do with our G+ business page? In the back end of the business G+, there are boxes I can check for “my business has service areas where I visit my customers at their location” and “I serve customers at my business address.” If checked, will these make my site less likely to rank Nationally? We DO have a storefront and we DO visit people to do installations, so I would like these to be checked but not if it hurts my national rankings. There are local “7 pack” results for my main keywords and their installations. So, I would want my root domain to show up locally for “widgets in [city]” and my sub-domain to show up for “widget installation in [city]". Is it against Google’s TOS to create another G+ business page for the sub-domain? Is this even possible? Do I even need to do this or will Google know that I have a sub-domain all about installation and have my site show up in the local results? Is there anything in GWT that I need to make sure to have done? I put the geographic target to United States. Is there anything else? Of course, there is always the option of creating a new domain and optimize it for the installations. Any other suggestions would be greatly appreciated. Thank you.
On-Page Optimization | | SWWebTeam0 -
The crawl diagnosis indicated that my domain www.mydomain.com is duplicate with www.mydomain.com/index.php. How can I correct this issue?
How can I fix this issue when crawl diagnosis indicated that my www.mydomain.com is duplicate with www.mydomain.com/index.php? That suppose to be the same page and not duplicate, right?
On-Page Optimization | | jsevilla0 -
How Can I Get Yahoo to Index My Site?
How Can I Get Yahoo to Index My Site? I have installed Bing webmaster tool two months ago -- is Yahoo that slow. My site has been out since May 2010 and for a year and a half, I only have 40 pages index. HELP!!!!
On-Page Optimization | | AppleCapitalGroup0 -
Best way to link to an affiliate site.
I have a site that promotes a single affiliate product. Would it be better to have a "buy" button in the content that goes straight to the external affiliates website or should I send it all to an internal page that redirects thus only having 1 external link to the product site.
On-Page Optimization | | jafabel0 -
Where does the schema.org info go?
Does the schema.org information go in the header of a page or in the body?
On-Page Optimization | | totalvac0