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
-
How can i check which inbound links to my site go to 404 pages?
I have external links coming into my site going to 404 pages, but i cant seem to find a way to search all broken links pointed at my website.
On-Page Optimization | | NickJPearse0 -
Hreflang - Is it needed even if the site is only one language
This topic came up in a discussion I had with a fellow SEO colleague, I don't believe it makes sense to have Hreflang if you don't have a second language but according to my friend they mentioned that it is great if your only targeting one country. Any opinions out in the Moz community? It seems like overkill to me
On-Page Optimization | | JonAlonsoCNC0 -
Help finding someone to handle crashing site/site optimization.
I need someone who can handle website/WordPress issues as they come up.For example, my site has gone down 4 times tonight, and my host can't figure it out. They also keep recommending that I optimize my site, but I don't know how. I need a go-to web person for this sort of thing. Any recommendations?
On-Page Optimization | | cbrant7770 -
Stumped: Site No Longer Showing Up for Important Keywords
URL is: www.radianceofpalmbeach.comGreetings All:I have been working on our company's website for months, and I am finally at wit's end. The site was very out-of-date and had unfortunately been built upon some bad links before my arrival. My partner and I have redone the site with SEO best practices in mind: we created new content for the pages, and have been working diligently on correctly organizing the site. Despite everything we have done, our site has plummeted since September in terms of organic search. Here are some of my suspects: Panda/Penguin: a lot of the content of the old site had been copied. We did our best to make our content helpful and original, but I'm not sure we did enough. Also, many backlinks were suspect. I disavowed all that I didn't like Dec. 8. I have seen minor improvement, but not much. Name Change: Around late October, coinciding with one of the algorithm changes, the doctor insisted we change our name from New Radiance Med Spa to New Radiance Cosmetic Center. We noticed overnight tumbling, but it literally happened at the same time many were complaining about Penguin. Pages too far removed from root directory?: We tried to silo the site by category to make it specific, but I'm not sure if we went too far from the root directory. For example, our botox page is: http://www.radianceofpalmbeach.com/services/injectables/neuromodulators/botox-cosmetic/ -- Should it just be ./botox ? Everything is only one link away, so we didn't foresee a problem. No alternate forms of navigation: Our navigation is solely drop-down. Content Issues: Since the site launch, my boss has changed the organization of the site around. I don't think this should be a problem, but I honestly don't know. Technical Issues: We use a Wordpress site, and the designer has been pretty good about making the site clean and without errors, but perhaps there is something I am overlooking? ??: Despite these issues, I feel like our site should be considered better than many of our competitors who nonetheless perform much better than we do on important keyword searches. Type in "liposuction palm beach" or "botox palm beach" and we don't even come on page 1, whereas we used to dominate. Any suggestions would be greatly appreciated, as, like I said, we are stumped. I feel like I have looked up every possible problem, and with the above list, we feel frozen as to which direction to turn.Thanks in advance,Michael
On-Page Optimization | | mikedelseo0 -
On site SEO review please
I'd appreciate it its anyone could take the time to review my on site SEO and suggest improvements. it's an adult dating site at http://www.local-sex-search. All pages can be found at http://www.local-sex-search.com/sitemap
On-Page Optimization | | SamCUK0 -
[HTML Gurus] Is the only nofollow = rel="nofollow"?
From my knowledge only way an HTML link is nofollow is using rel="nofollow". I was wondering if you have a link , is there anything you can put OTHER than rel="nofollow" within the <a></a>tags that make a link nofollow?
On-Page Optimization | | William.Lau0 -
Working on this site...
and wondering what is wrong in terms of on page SEO (basically just want some feedback on tips/changes to make) http://www.stevenholmesstudio.com/ I'm assuming that the title shouldn't be just the img file name..any suggestions for what it should be?
On-Page Optimization | | callmeed0 -
Page Analysis on our asp.net site is showing the following for HTML Text - //
paintball-online.com This is consistent on every page, despite these pages having text. I assume the SEOMoz tool is working just fine and we have a coding issue that may be hindering our SEO efforts. Any ideas/suggestions? Thanks
On-Page Optimization | | Istoresinc0