It doesn't seem to apply the values of the DirectoryIndex to the filenames.

DirectoryIndex index.php index.ehtm index.pl index.html

RewriteCond %{REQUEST_FILENAME} .*\.php$
RewriteRule ^(.*)$ http://%{HTTP_HOST}:83$1

rewrite.log:
194.144.154.45 - - [19/Jan/2001:11:40:23 +0000] 
[dave.mekkano.com/sid#816ad70][rid#81b8f88/initial] (4) RewriteCond: input='/' 
pattern='.*\.php$' => not-matched

RewriteCond %{SCRIPT_FILENAME} .*\.php$
RewriteRule ^(.*)$ http://%{HTTP_HOST}:83$1

rewrite.log:
194.144.154.45 - - [19/Jan/2001:11:40:28 +0000] 
[dave.mekkano.com/sid#816ad70][rid#81b8f88/initial] (4) RewriteCond: input='/' 
pattern='.*\.php$' => not-matched

- Tomas Edwardsson

On Fri, Jan 19, 2001 at 11:32:34AM +0000, Matthew Byng-Maddick wrote:
> On Fri, 19 Jan 2001, Tomas Edwardsson wrote:
> > RewriteCond %{REQUEST_FILENAME} .*\.php$
> > RewriteRule ^(.*)$ http://%{HTTP_HOST}:83$1
> > I Tested it like this and this doesn't seem to work, either
> > I'm misunderstanding RewriteCond or this method doesn't work.
> 
> What happens if you turn RewriteLog On and set RewriteLogLevel 9?
> 
> MBM
> 
> -- 
> Matthew Byng-Maddick   Home: <[EMAIL PROTECTED]>  +44 20  8981 8633  (Home)
> http://colondot.net/   Work: <[EMAIL PROTECTED]> +44 7956 613942  (Mobile)
> Under  any conditions,  anywhere,  whatever you  are doing,  there is some
> ordinance under which you can be booked.  -- Robert D. Sprecht, Rand Corp.

Reply via email to