This is a discussion on Make all pages .php? within the PHP Language forums, part of the PHP Programming Forums category; Tim Tyler wrote: > Andy Jeffries <news@andyjeffries.remove.co.uk> wrote or quoted: > >>On ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Tim Tyler wrote:
> Andy Jeffries <news@andyjeffries.remove.co.uk> wrote or quoted: > >>On Tue, 30 Sep 2003 10:36:10 +0000, Tim Tyler wrote: > >> >>RewriteEngine on RewriteCondition %{REQUEST_FILENAME} !-f >>RewriteRule ^(.*)\.html $1.php [R] > > That will redirect EVERY .html page request to fetch a .php page. now it will only if the .html file doesn't exist. :P -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions, alt.php* groups are not recommended. |
|
|||
|
Martin Lucas-Smith wrote:
> > That was my point entirely - .html isn't specific to any particular > technology and is preferable to using .php (especially when the site is > substantially making use of PHP parsing on most page) However, some hosting companies won't allow you to force parsing other file types... -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions, alt.php* groups are not recommended. |