Answer the question
In order to leave comments, you need to log in
How to write correct Rewrite Rule in .htaccess?
Hello!
I just need when the user hits a specific page address https: // site . xyz/goods/akkumuljatory-avtomobilnye/60/85 give him a page with certain parameters. No regulars or anything. I do so
RewriteRule ^goods/akkumuljatory-avtomobilnye/60/85 /goods/akkumuljatory-avtomobilnye?filter_from=60&filter_to=85
Answer the question
In order to leave comments, you need to log in
Redirect 301 /goods/akkumuljatory-avtomobilnye/60/85 http://your domain/goods/akkumuljatory-avtomobilnye?filter_from=60&filter_to
=
85
/akkumuljatory-avtomobilnye/60/85')
{
header("Location: /goods/akkumuljatory-avtomobilnye?filter_from=60&filter_to=85");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question