Okay, here's my situation. I have a site that is 100% html. Editing the site can be a pain. When I want to add a page, I have to add a link on every page. This is what I want to do. I want to make make my html pages php pages, but since my website is an established website that is getting good traffic, I want the search engines to see the .html pages instead of the php pages. Here are my questions: Will changing my html pages to PHP pages and then doing a modrewrite so that SEs see the html pages solve my problem? If so, how do I do a modrewrite that will solve my problem. I've read the sticky and it's all Chinese to me. Thanks!
呃,现+在说的+容易 。哦 ç‰å¾…。/ ä½ æƒ³^在英è¯å¸ƒ\.å…°$ å¦®æˆ‘æƒ³ä½ æƒ³.达英文版 [本] OOPS!!! I think you want da English version!!! Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)\.html$ $1.php [L]
If the site is already indexed with the php URLs, it'll generate duplicate content. mod_rewrite should be done before the search engines find you!!!
I currently have html pages. And they are already indexed. They've actually been indexed since 2004. Man, I wish I would of started the site as a PHP site!
Why dont you just change the file extension? You can still load php content in .html file and html content in .php file.
Could you explain a little bit more? My file extensions are currently all .html. It seems like if I change them to PHP, but do a modrewrite so they appear as .html files as the same name as my old hml files the search engines wouldn't have a problem with it.?
Correct, as long as they are the exact same files names, the search engines wont have a problem with it! mckST
Do a test... Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^index\.html$ index.php [L] if domain.com/index.html doesn't work, nothing will work. You can try taking the first line out.