2014-06-21, 20:08:32
Hi to all,
I have a similar problem but not the brain to adopt your solution.
I use fancy urls with these rules in .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+).html$ index.php?id=$1 [QSA,L]
This results in pages like www.tld.com/site.html
Now I want 301 redirections from old urls like www.tld.com/oldsite.html to the new site.html.
And I always get a redirection to www.tld.com/site.html?id=site
How can I formulare the rewrite rule for workung redirections?
I have a similar problem but not the brain to adopt your solution.
I use fancy urls with these rules in .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+).html$ index.php?id=$1 [QSA,L]
This results in pages like www.tld.com/site.html
Now I want 301 redirections from old urls like www.tld.com/oldsite.html to the new site.html.
And I always get a redirection to www.tld.com/site.html?id=site
How can I formulare the rewrite rule for workung redirections?