Quote:
Originally Posted by ponygirl
I have one directory with about 125 or so pages that I'd be needing the php on. Any new pages in that directory I would just do as php I guess.
I was thinking about just switching them to php anyway if I can do a global redirect or something since they're all in the same directory? I really don't want to have to redirect 125 pages separately, it sounds a bit messy.
|
personally, I would leave them as .htm or .html files and just parse them. No supported evidence behind it, but, a gut feeling that google prefers .html files over .php
If you wanted to redirect files, you could do it with mod_rewrite.
If you want to silently serve the .php as .html (and for some reason didn't want to parse .html)
Code:
RewriteEngine on
RewriteRule ^(.*).html$ $1.php [L]
If you wanted to 301 redirect the old content to the new page
Code:
RewriteEngine on
RewriteRule ^(.*).html$ $1.php [R=301,L]
Personally, I would just turn on php parsing for .html files in that directory and not worry about it.