Since I've changed my site around and want to accomodate the search engine spiders, I've provided a list of Permanent redirects in my .htaccess. The problem is that Drupal's built-in mod-rewrite takes those new URL:s and adds a query string, thus when I want to redirect /per to /cv
- Code: Select all
Redirect permanent /per http://www.axbom.se/cv
the browser ends up at
- Code: Select all
http://www.axbom.se/cv?q=per
In this scenario, Drupal is unable to process the URL, and ends up with a 404, although the page
http://www.axbom.se/cv does work with the current mod_rewrite.
How do I make the redirects work and still maintain clean URLs? The current mod_rewrite reads:
- Code: Select all
# Various rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
# Rewrite URLs of the form 'index.php?q=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [QSA,NE]
</IfModule>