here is my htaccess :
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
what I am trying to do is to add an exception for the folder stat that way when I try to open it it doesn't redirect me to the home page. any suggestions/help please ?
I am trying to do is to add an exception for the folder stat
You can try this rule:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !(public|stat)/ [NC]
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.