I have the following regex in the .htaccess file, its working fine in my local machine, but on the server localhost this will not work If I have the \/
in the regular expression
RewriteEngine on
RewriteRule ^orders\/ order.php [L]
My url will looks like localhost/items/orders/casio-watch
.
*Here items
is the foldername
Please help, Thanks in advance
Use a RewriteBase
statement in your .htaccess:
RewriteBase /items