Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2009-05-12, 07:50 PM   #1
ponygirl
on vacation
 
ponygirl's Avatar
 
Join Date: Sep 2004
Posts: 2,095
Send a message via ICQ to ponygirl
Quote:
Originally Posted by cd34 View Post
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.
thank you |blowkiss| that's exactly what I want to do because it seems to be the easiest way.
ponygirl is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:33 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc