Hey pple, i'm just starting out on Drupal, have setup everything except for clean URLs. I just cannot get mod_rewrite to work on my apache 2 running on XP . I followd instructions from other websites that sed i have to uncomment the line "LoadModule rewrite_module modules/mod_rewrite.so" in http.conf, I did n restarted apache but still faild to run the clean URLs test. I couldnt see the "AddModule mod_rewrite.c" line that they sed i should uncomment as well n so i added one just after th LoadModule rewrite_module modules/mod_rewrite.so and Apache failed to restart. I also can't find the ClearModuleList line that someone suggested i should uncomment.

Please pple can someone help me out before my deadline, i would greatly appreciate it.



Oceria’s picture

I don't know about Apache settings, but did you take a look here as well? You need to set some more settings before the clean URL test is available. Please read all the way down!

Oceria doesn't know where this -repeatbutton -repeatbutton is....

trep316’s picture

AddModule mod_rewrite.c and ClearModuleList are not needed for the new version of Apache, if the lines are not there you don't need to add them. After you uncomment the LoadModule rewrite_module modules/mod_rewrite.so in the conf file, open the .htaccess file inside the root of your drupal directory and uncomment the following lines:

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

Or you could just replace the entire .htaccess code with the above code, also make sure to replace the drupal directory in "RewriteBase /drupal" with the name of the folder that stores your drupal files.

After that, go to the modules section of your page and make sure that the Path module is activated, then run the clean url test again.

cyberdaku’s picture

I've followed instructions posted by trep316, uncommented the like LoadModule rewrite_module modules/mod_rewrite.so in http.conf (apache 2.2) i also uncommented lines in .htaccess in drupal's root but still when i go to clean url test it says NOT FOUND. what else can i try... also i changed AllowOverride to All in http.conf. soo my question is what to do now???

justmills’s picture

I realise you may have already resolved you issue but someone else may benefit formt he following, which i found on anther forum......thank you alpha0

Look at httpd.conf, change the following block:

Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Satisfy all

Along with:

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all