Forum Moderators: phranque
For eg: when the user goes to mydomain.com/admin/, instead of the rewrite it actually goes to the mydomain/admin/ folder
but within the admin folder I still use mod rewriting for better urls.
I exclude the admin folder using
.htaccess in root
RewriteEngine on
RewriteCond %{REQUEST_URI}!^/admin/.*
RewriteRule ^([A-Za-z]+)$ /$1/ [R]
RewriteRule ^([A-Za-z]+)/$ /index.php?module=$1
AddType x-mapp-php5 .php
then in the admin folder im using a new htaccess
.htaccess in admin
RewriteEngine on
RewriteRule ^([A-Za-z]+)$ /$1/ [R]
RewriteRule ^([A-Za-z]+)/$ /index.php?setting=$1
AddType x-mapp-php5 .php
when I do
mydomain.com/admin/edit/ >> it works
mydomain.com/admin/edit >> just goes toe mydomain.com/edit/
but i thought RewriteRule ^([A-Za-z]+)$ /$1/ [R] solves not adding the slash
any input?