1. For Apache2 on Windows, there is no AddModule mod_rewrite.c line, so forget it.
2. Add the AllowOverride All (misspelled above) to a Directory inside your site config like this:
<Directory /path/to/your/drupal/dir>
AllowOverride All
</Directory>
PS> Found this page on Google, so I guess it works, huh?
Hi,
Clean URLs weren't working for me either. I went through what you have suggested and a similar article on drupal.org's forum but it still didn't work. After looking through my httpd.conf I noticed the following entry:
This directory config block was causing the problem even though I had AllowOverride set to All in drupal's directory config block. Now that I think about it, this behavior _does_ make sense. Anyways, Changing the "AllowOverride None" to "AllowOverride All" in this block brought everything back to normal.
Clean URLs aren't needed for Google to index, not do they give you higher rankings, that's a myth. They only use words in URLs as keywords if they aren't already present either on the page or in links to your site.
Google can index get URLs (?q= type URLs) just fine, you'll find many of them from searches. I've never used URL rewriting, but my blog pages are well ranked (using Wordpress, URLs come out like http://example.com/index.php?p=365).
If your site wasn't being indexed, it's for another reason.
Read up on how Google indexes sites, they list it all openly in their documentation, there's no voodoo or deep dark mysteries about it, all of their really difficult stuff is in rankings, not indexing.
Thanks for your comment. I think the post, back in March '04, came as a result of my work building a blogging engine using Filemaker. Back then, Filemaker URLs really were 'bad' and no indexable, for whatever reason. I spent lots of time investigating at the time, so I moved over to Drupal.
I suppose the same anxiety pursued this move, hence the blog post. However, I'm glad I looked at the 'clean URL' technology because, as you say, pages are better indexed because of words in the URL. Are you sure words in the URL aren't given more favour in Google searches? How can we test / prove this?
I have just adjusted as you said. But my problem continue. The choice Enable clean url is still grey and I can not activate it. I set drupal wwwroot I mean main directory but I can not activate clean url. Please help. Thanks.
the site: http://www.uniyolu.com/
mail: uniyolu@hotmail.com
I think this refers to the directory path where Drupal is installed and from which nodes Drupal articles will be referenced from. So in terms of Allow Override All, make sure this is applicable to the Drupal directory in your. Thank you.
This is great. This directory configuration block was causing the problem even though I had AllowOverride set to All in drupal's directory configuration block. Now that I think about it, this behavior does make sense. Thank you.
Comments
visitor
29 July 2004 - 2:22pm
Permalink
Povl Koch
Thanks, now it works for me too!
visitor
5 September 2004 - 12:53am
Permalink
Dave
Worked for me with a couple of hitches:
1. For Apache2 on Windows, there is no AddModule mod_rewrite.c line, so forget it.
2. Add the AllowOverride All (misspelled above) to a Directory inside your site config like this:
<Directory /path/to/your/drupal/dir>
AllowOverride All
</Directory>
PS> Found this page on Google, so I guess it works, huh?
www.waterwire.com
Jonathan
5 September 2004 - 10:09am
Permalink
Jonathan Furness
Excellent - thanks for your comments.... that's really useful to know. As you may have guess already, much of my development is done on Mac OSX.
visitor
17 October 2004 - 1:28pm
Permalink
Farhan Ahmad
Hi,
Clean URLs weren't working for me either. I went through what you have suggested and a similar article on drupal.org's forum but it still didn't work. After looking through my httpd.conf I noticed the following entry:
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
</Directory>
This directory config block was causing the problem even though I had AllowOverride set to All in drupal's directory config block. Now that I think about it, this behavior _does_ make sense. Anyways, Changing the "AllowOverride None" to "AllowOverride All" in this block brought everything back to normal.
Thanks!
http://www.farhan-ahmad.net
Jonathan
17 October 2004 - 9:31pm
Permalink
Jonathan
Thanks Fahran, much appreciated.... I'll check out your site....!
visitor
17 October 2004 - 1:30pm
Permalink
Farhan Ahmad
Sorry, the previous link pointed to the wrong post on drupal.org. This should be the correct on.
- Farhan
Jonathan
17 October 2004 - 9:31pm
Permalink
Jonathan
no worries :-)
visitor
28 April 2005 - 8:05pm
Permalink
MagnusB
visitor
28 April 2005 - 8:16pm
Permalink
MagnusB
visitor
29 September 2005 - 2:32pm
Permalink
i wish it works for me
visitor
29 September 2005 - 2:34pm
Permalink
i wish it works for me
visitor
29 October 2006 - 7:55pm
Permalink
cheers
Jonathan
29 October 2006 - 8:22pm
Permalink
Jonathan
visitor
21 October 2007 - 2:40pm
Permalink
Imran
None working for my site :(
visitor
1 December 2007 - 3:37pm
Permalink
Rog
Clean URLs aren't needed for Google to index, not do they give you higher rankings, that's a myth. They only use words in URLs as keywords if they aren't already present either on the page or in links to your site.
Google can index get URLs (?q= type URLs) just fine, you'll find many of them from searches. I've never used URL rewriting, but my blog pages are well ranked (using Wordpress, URLs come out like http://example.com/index.php?p=365).
If your site wasn't being indexed, it's for another reason.
Read up on how Google indexes sites, they list it all openly in their documentation, there's no voodoo or deep dark mysteries about it, all of their really difficult stuff is in rankings, not indexing.
Jonathan
1 December 2007 - 10:38pm
Permalink
Jonathan
Hi Rog
Thanks for your comment. I think the post, back in March '04, came as a result of my work building a blogging engine using Filemaker. Back then, Filemaker URLs really were 'bad' and no indexable, for whatever reason. I spent lots of time investigating at the time, so I moved over to Drupal.
I suppose the same anxiety pursued this move, hence the blog post. However, I'm glad I looked at the 'clean URL' technology because, as you say, pages are better indexed because of words in the URL. Are you sure words in the URL aren't given more favour in Google searches? How can we test / prove this?
Jonathan
visitor
29 June 2009 - 11:11am
Permalink
batwing
visitor
25 October 2009 - 10:11pm
Permalink
ozer
I have just adjusted as you said. But my problem continue. The choice Enable clean url is still grey and I can not activate it. I set drupal wwwroot I mean main directory but I can not activate clean url. Please help. Thanks.
the site: http://www.uniyolu.com/
mail: uniyolu@hotmail.com
visitor
28 November 2009 - 6:22am
Permalink
nabil
listen niggaz
do this maybe with all of the above:
You should uncomment '#RewriteBase /drupal' in the .htaccess file and remove 'drupal'. It should look like this:
RewriteBase /
Next add the following code snippet to your settings.php file located at site/default/settings.php.
$conf['clean_url'] = 1;
visitor
28 November 2009 - 6:54am
Permalink
nabil
on second though dont include anything in settings.php
this RewriteBase /drupal should be like this everywhere in .htaccess file.
note above RewriteBase /drupal indicates my directory where drupal folder is residing
visitor
29 April 2010 - 7:13am
Permalink
Nico
Many thanks for the tip !
visitor
29 June 2010 - 1:03pm
Permalink
coonweb
Here is a video to explane how to get clean urls on Drupal website!
http://www.drupaldude.com/content/clean-urls-need-htaccess-file
Have a nice day! ;)
visitor
26 May 2011 - 8:07am
Permalink
Christine Foster Photography
I think this refers to the directory path where Drupal is installed and from which nodes Drupal articles will be referenced from. So in terms of Allow Override All, make sure this is applicable to the Drupal directory in your. Thank you.
visitor
29 May 2011 - 3:30am
Permalink
Copper Basin Construction
This is great. This directory configuration block was causing the problem even though I had AllowOverride set to All in drupal's directory configuration block. Now that I think about it, this behavior does make sense. Thank you.
Add new comment