Jump to content
Sign in to follow this  
getmukesh

htaccess RewriteRule issue

Recommended Posts

I have written rewriterule in htaccess for accessing category page. Category page working file, but my subfolder not browse which contains other files.

 

You can see code below

 

------------------------

Options +FollowSymlinks

 

RewriteEngine On

RewriteBase /

 

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

 

RewriteRule ^([A-Za-z0-9-]+)/$  category.php?category=$1

------------------------

 

 

e.g.

 

If i access the page 

 


 

Its showing the category result page. This is working perfectly. 

 

But when i tried my subfolder which exists on root directory, not accessible because of rewriterule written above.  Its showing same category page like international.

 


 

subfolder = is the subfolder exists

 

Share this post


Link to post
Share on other sites

not accessible because of rewriterule written above

Actually no, the rule explicitly does not match directories that exist.

 

"not accessible" is not helpful. How is it not accessible? 403 or 404?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.