Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi Cheesy,

I got a strange 403 when implementing the gen_htaccess with a file named menu.php at

http://www.quananchin.com

It reads:

Forbidden
You don't have permission to access /menu/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I did all things right, and it works with the rest of the website, but this page... Everything's just fine if I don't use the pretty URL's though... but it's funny!

Any idea why? I have a folder named 'menu' as well, but I don't think there's any incidence.

Best regards,
Paolo
Hi Paolo,

I think in fact the presence of that menu directory is indeed the cause of the 403. The following lines in the generated .htaccess are relevant to this situation:
Code: Select all
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule . - [L]
This effectively gives priority to actual directories and files over the transformed Pretty URL.
Cool,

Ok, I fixed it already. It's always the simpler things that I miss.
Well, I don't know shit about .htaccess in the other end... he he he

Thanks for your help Cheesy (again!)

Cheers,
Paolo
3 posts Page 1 of 1