I’m trying to do something like this…Not sure where I am going wrong.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)^/(.*)^/(.*)$ /$1/$2.php?page=$3 [L,QSA]
Basically I want to be able to put in something like /item1/item2/item3 and have those values in $1, $2, and $3 etc….
Thanks
Instead of
.*, try using.+. Also be sure to consider there may be a trailing slash: