...

View Full Version : mod_rewrite -> file



trib4lmaniac
10-20-2004, 05:43 PM
How do you set up mod_rewrite (on apache2) to append .php to a url if the file exists? I've tried

RewriteEngine On
RewriteCond %{REQUEST_URI}.php -f
RewriteRule ^(.*)$ $0.php

But that doesn't work

sir pannels
10-22-2004, 01:58 PM
Trib..
take a look at THIS (http://forums.llamasery.com/showthread.php?t=4979) link.. not only is it about mod rewrite but it also has lots of links to other references within the post about mod rewrite.

Sir P

trib4lmaniac
10-22-2004, 08:20 PM
Thanks, but I can't see anything relating to what I want. TBH, I don't see why my previous method doesn't work. It should (or am I missing something.)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum