301 Redirect URL Appending Query String
Options +FollowSymLinks +SymLinksIfOwnerMatch -MultiViews RewriteEngine On RewriteCond %{HTTP_HOST} ^mydomain.com [NC] RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301] RewriteBase / rewriterule ^(.*)/(.*)\.html$ product.php?id=$1&name=$2 [L] rewriterule ^deals/(.*)$ details.php?id=$1 [L] rewritecond %{SERVER_PORT} 80 rewritecond %{REQUEST_URI} publisher.php rewriterule ^(.*)$ publisher.php [L] Redirect 301 /deals/74/product-name.html http://mydomain.com/74/product-name.html
I'm not sure why its appending "?id=74&name=product-name" after url?
I want to display only "www.mydomain.com/deals/74/product-name.html"
I cant figure out how to fix this problem. I'll appreciate if you can guide me on this.
Are you using WordPress? Have you tried qSandbox yet?