Just in case someone stumble upon that post. I have struggle for the last 4 days to activate the clean urls on my website. I have tried almost all the help I could find on google (going back at least 10 pages in the search results, yeah that desperate). I found great tutorial and hint about how to configure the .htaccess and settings.php files. I have tried all of them without success.

I could navigate on my website without the /?q=
When accessing the http://www.mywebsite.com/?q=admin/config/search/clean-urls, and clicking on Test Clean URL button, the test failed all the time.
When accessing without the /?q= http://www.mywebsite.com/admin/config/search/clean-urls I could see the checkbox but each time
I try to enable the clean url, the page reloaded and the checkbox was once again empty (like when I was trying to edit directly a content page without the /?q= in the link the change wasn’t taking effect).

Something was definitely not working.

In all my reading I remember seeing somewhere that when your site is in maintenance mode the Clean URLs cannot be activate.
Yeah, right. I wasn’t on maintenance mode…. sort of.

Last weekend I received an email from my hosting company telling me they had to take my website offline to prevent further spam submission and further risk to my website visitors from potential malicious content.

Yes I was struck by the SA-CORE-2013-003. After contacting my hosting company they fix the website so only my IP could access it, that way I could upgrade Drupal core with the last good secure version.

So to make it short, I take the chance to have my website put back online to everyone without the Clean URLs turn on. My thinking was that maybe Drupal was "seeing" that I was on maintenance mode since only my IP could access the website.

Dang it was really good thinking! The second it was online, I click the test Clean URLs button praying it would finally be all right. AND IT WAS!!!!! Now my Clean Urls are activated.

I hope nobody had the same 4 days I just had, it was awful :)

*Sorry for my English if its not clear!

Comments

Drupal_Chick’s picture

I created a new account, just so I could give you my THUMBS UP!! Cause I've been pulling my hair out over this issue aswell. You seem the be the only one (atm) who comes up with this 'solution'.
I also followed tons of tutorials and re-checked the http.conf file, 000-default.conf etc and still no luck. After I disabled the maintenance mode, the checkbox was available for Clean Urls! Before, it didn't show up at all and I couldn't even run the test.

Thanks again mate! :)

ishmaelny’s picture

I had the same problem where my drupal web site. This post WORKED FOR ME!

LoriRoberts’s picture

What a great resource to have, thank you for posting this!