Hi,
I have the following htaccess file:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
DirectoryIndex /index.php
RewriteRule ^([^/.]*)$ $1/ [R]
RewriteRule ^([^/.]*)/$ /$1.php [QSA]
</IfModule>
This works fine, if I put for example /legal/ it loads up legal.php however if legal.php didnt exist I need it to put index.php?username=legal
Can this be done?
Thanks,
Daniel