I have the following htaccess file:
RewriteEngine On
RewriteRule ^([^/]*)$ /bio.php?bio=$1 [L]
I need it to do the following:
Any help much appreciated.
Thanks
Try something like this:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ bio/bio.php?q=$1 [L]
First line will skip the RewriteRule if it finds a matching physical file; second line will skip it if it finds a matching directory. The third line is the rewrite rule that will be executed if the preceding condtions are met.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With