Drupal and clean URL's

I was having a problem getting clean url's to work after moving to another hosting provider. I'm using Drupal 4.7rc3 right now and I just couldn[t figure out what the problem was. I knew that ModRwrite was enabled. I had the right commands in my .htaccess file. I was stumped. I found this comment on Drupal.org that solved the problem for me.

The answer: Just add a slash in front of index.php in the rewrite rule like this:

RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

Now it works just fine.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options