Clean URLs presents the "Run the clean URL test" button but pressing the button takes the user right back tot he same page with no additional information. An option to turn ON clean URLs is never presented.

In my case, the problem was caused by there being no .htaccess file.

Why was there no .htaccess file in the root directory of my Drupal 7 installation? Maybe making sure one gets created at installation is a separate issue.

Copying a .htaccess file from one of my Drupal 6 installations got this working.

I think it makes sense that the "Run the clean URL test" should check to see if a .htaccess file is present and if no, report back about this being the case.

Comments

geerlingguy’s picture

Status: Active » Closed (duplicate)
hcabbos’s picture

At least for me, the fix was comment #12 here:

http://drupal.org/node/944080

nasirukangiwa’s picture

Component: system.module » help.module
Assigned: Unassigned » nasirukangiwa
Category: bug » task

H! everybody, Please let someone help me. I have problem with Clean URL. that is enabling or disabling could not appear and uncomment the .htaccess file but still facing problem of not able to enable the url.
Waiting to hear from you sir.

Nasiru Kangiwa

JoshOrndorff’s picture

Copying an .htaccess file from another drupal 7 installation fixed the issue for me as well.

-Josh

joseto’s picture

Just in case, before touching .htaccess files, try this very very simple option:

If you're working on maintenance mode, go online.
Once you're online, go to clean URL. Probably you'll be able to check it now.

Of course, after that you can return to maintenance mode again.