Reputation: 3182
I want to redirect example.com/recipes/signup?code=OLD277
to example.com/recipes-user/register
How can I achieve it via htacces?
I tried the below code in .htaccess
but its not working!
Redirect /recipes/signup?code=OLD277 http://example.com/recipes-user/register
Upvotes: 1
Views: 22
Reputation: 785008
You may use this rule as your topmost rule in site root .htaccess:
RewriteEngine On
RewriteCond %{THE_REQUEST} /recipes/signup\?code=OLD277\s [NC]
RewriteRule . /recipes-user/register? [R=301,L,NE]
Upvotes: 1