I’m trying to change the $_GET[‘p’] variable in my url to it’s own, but without the ?=.
Example:
http://www.example.com/?p=about to http://www.example.com/about
The problem is that my bit of htaccess code also reacts to subfolders aswell.
If I want to access my images folder as an example, I get:
http://www.example.com/images/?p=images
How do I make sure my .htaccess ignores any subfolder?
This is the .htaccess I’m currently using
RewriteEngine on
RewriteBase /
# Rewrite page include
#RewriteRule ^(\w+)$ index.php?p=$1
Sorry for my bad explaination.
-Banana
All the
RewriteCondconditions are chained (only if all of them pass, then the rule is applied).