Forum Moderators: phranque
RewriteEngine OnRewriteCond %{REQUEST_URI}!^ar/? [NC]
RewriteRule ^(.+)$ index.php?pname=$1 [L]
RewriteCond %{REQUEST_URI} ^/ar [NC]
RewriteRule .* 403.shtml [F,L]
the problem is that when writing www.example.com/ar it goes to the index.php page and i find that the $_GET variable is index.php so what is the problem i don't want the engine to rewrite the ar to the index.php..
thank you
ErrorDocument 403 /403.shtml
#
RewriteEngine on
#
RewriteCond %{REQUEST_URI}!^/ar/? [NC]
RewriteCond %{REQUEST_URI}!^/index\.php$
RewriteRule (.+) index.php?pname=$1 [L]
#
RewriteRule ^ar/? - [F]
Jim
Another question please...
ar/ is a directory in my website.. I have two .htaccess files, one inside the ar directory and the other in upper directory..
now when I try to access the ar directory using www.example.com/ar without the trailing slash it gives me a bad request 400..
I tried alot of solutions found in this forums but it didnt work..
Is there a problem to have two .htaccess, one inside the other?