0

Hi everyone...
I am just geting to grips with htaccess RewriteRules

I have the following rule that redirects users to website.com/folder

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9]+)\/?$ /webstores/$1/ [L]

But the url is missing the trailing forward slash /
when I try and open php files in the directory, I get the 404 not found error message
when I add the trialing slash myself and open a php file, it opens as expected...

What am I missing....
Thanks

2
Contributors
4
Replies
20
Views
4 Years
Discussion Span
Last Post by pixelsoul
0

Hi thanks for replying...
Would I add your suggestion to the existing file or replace it

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.