Make all pages .php?

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #31 (permalink)  
Old 10-02-2003
Justin Koivisto
 
Posts: n/a
Default Re: Make all pages .php?

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.

Reply With Quote
  #32 (permalink)  
Old 10-02-2003
Justin Koivisto
 
Posts: n/a
Default Re: Make all pages .php?

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.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0