Jump to content


htaccess RewriteRule issue

htaccess rewriterule redirect

  • Please log in to reply
1 reply to this topic

#1 getmukesh

  • Members
  • PipPip
  • Member
  • 15 posts

Posted 11 May 2017 - 11:56 AM

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
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

#2 requinix

  • Administrators
  • Maddening Administrator
  • 9,723 posts
  • LocationWA

Posted 11 May 2017 - 01:37 PM

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?
The Reimann Zeta Function Trolley Problem | If you want to escape with me, come take my hand...

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users