I have spent about four hours trying to get clean URLs to work and it is really doing my head in. I am very new to Drupal and after hearing all the wonderful things about it, this is disappointing. Here is my setup:
I have XAMPP on windows 7
, and installed Drupal 7.22
into a folder c:\code\drupal
In my httpd.conf
, I have Alias /code "C:\code"
This works because I have other folders inside c:\code
functioning perfectly well
The drupal .htaccess
file works because if I add junk line in there I get a server error
In the .htaccess
I tried all combinations of RewriteBase
I could think of:
RewriteBase /
RewriteBase /code
RewriteBase /code/drupal
RewriteBase /drupal
mod_rewrite
works because I already have other installations which uses it correctly.
I also tried going directly to http://localhost/code/drupal/admin/config/search/clean-urls
but that gives me a 404 error
Every time I go back to admin > config > clean URLS
, it says the test failed. I know this is apparently some error from my side, but its getting very frustrating. Can anyone see what I am missing here? :(
- I read all the similar questions here in SO, but their solutions do not work for me.
- I posted this in
drupal.stackexchange.com
as well but did not get any answers. - I am posting it here since the SO PHP community is more active and undoubtedly there are many who know drupal in depth.
- I am really hoping someone will help me figure this out...