Reputation: 1247
I have a problem with .htaccess
redirect:
in my site, I already have a file htaccess with this strings:
RewriteEngine On
RewriteRule ([^/\.]+)/page/?$ cms.php?lang=$1&livello1=page [L,QSA]
and I want to do redirect from "http://example.com/it/page
" to "http://newexample.com/negozio/page1
".
My code for redirect is:
#REDIRECT
Redirect /it/page http://newexample.com/negozio/page1
When I try to do this, the redirect becomes http://newexample.com/negozio/page1?lang=it&livello1=page.
How can I delete "?lang=it&livello1=page
"?
Does "?lang=it&livello1=page" originate from my .htaccess?
Sorry, but I found no solutions on google.
Thank's.
Upvotes: 0
Views: 1419
Reputation: 11
Add a ? at the end of the redirect:
#REDIRECT
Redirect /it/page http://newexample.com/negozio/page1?
Upvotes: 1