PDA

View Full Version : Drupal and "clean URLs"



RingtailedFox
10-23-2008, 10:10 PM
Hello. i'm writing becuase i am hosted by Hostmonster.com, and i have installed Drupal 6.6 (via simplescripts.com). When i enable "clean URLs" (which gets rid of "?q=" in front of the page/folder name), it gives me a 403 error on /admin/, but the main site page and subfolders (such as /admin/content/) are fine. if i disable clean urls (which adds the ?q=), everything works well. I'm trying to figure out what is causing this, and i suspect it's something to do with .htaccess, but i'm not sure. any help would be greatly appreciated.

Falcon1986
10-23-2008, 10:23 PM
Did Drupal add any statements to your .htaccess file?

According to the Drupal documentation (http://drupal.org/node/15365), you should have the following mod_rewrite in your .htaccess file.


RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

...assuming that your Drupal installation exists in the root (public_html) directory.