By hicham7 on
Hello
I've created "page not found" content to be handled for 404 and 403 pages in the error reporting section in site configuration which works,
except for those paths
www.example.com/modules/ or www.example.com/themes/
or any folder you have in your website directory
you get :
Forbidden
You don't have permission to access /drupal-5.7/modules/ on this server.
Apache/2.2.8 Server at localhost Port 80
how do I make drupal handle thoses cases ?
thanks
Comments
Check under Administration >
Check under Administration > Error Reporting.
There should be two text boxes where you can input the nodes where those pages are located, and it should re-direct to those two from there.
Tom.
----------------------------------------
My Drupal experience so far:
http://thedrupalexperience.blogspot.com/
What is different with these
What is different with these pages is that they are real files. Drupal doesn't handle your real files, for obvious reasons, so you get Apache to answer.
You could change that in .htaccess by removing the last RewriteCond lines which check if it is a file or a directory (
!-fand!-d), but I believe you wouldn't like the consequences. You would lose control of any non-drupal files or directories you may have.