FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


.htaccess. What's wrong?





Fire Boar
Code:
RewriteEngine On

# First level only, but allow maintenance panel
RewriteCond %{REQUEST_URI} !/maintenance(/.*)
RewriteRule ^(.*)/([^\-\.]+)$ / [F,L]
RewriteRule ^(.*)/$ / [F,L]

# A file with an action
RewriteRule ^([^\-\.]+)\-([^\-\.]+)$ /index.php?name=$1&file=$2 [QSA,L]

# A file with no action
RewriteRule ^([^\-\.]+)$ /index.php?name=$1 [QSA,L]

# Front page
RewriteRule ^$ /index.php [QSA,L]


The problematic part is the "first level only" section. mysite.com/maintenance/ returns a forbidden (meaning that the first rewriterule has fired). Why is this?

Help would be greatly appreciated.
Related topics
htaccess Password Protection
.htaccess tutorial
Ok a little help for a semi-beginner
CANT UPLOAD .htaccess, .htpasswd, .header, .footer
[tutor] How to protect images without htaccess using PHP
Optimization is spelled wrong
.htaccess problem
wrong configuration or server software (settings)? solved
I need to edit the .htaccess
secure subdomain .htaccess problem.
Password thing is realy annoying me(htaccess)
.htaccess NOT WORKING
(resolved)Help! I messed up my .htaccess(please close)
rewrite rule htaccess
.htaccess... Somebody help me!
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.