Forum Moderators: phranque
We sent out an email blast with a link to a page. We just typed out the path. The email program dropped the last letter in the path so the link was incorrect. I wanted to use a redirect to compensate. The basic command is not working as expected for some unseen reason.
Basically I want this page http://example.com/foo-bar
to redirect to http://example.com/foo-bars
In .htaccess:
Rewrite /foo-bar http://example.com/foo-bars [R=301] Instead I get http://example.com/foo-bar?q=foo-bars
The?q= being the Drupal default. I am using rewrite statements to get clean URLs:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
To get:
http://example.com/foo-bars rather than
http://example.com/?q=foo-bars
I just created a duplicate page to handle the immediate problem, but would like to know if anyone here has any bright ideas.