A
A
alexvt092019-04-25 09:49:11
htaccess
alexvt09, 2019-04-25 09:49:11

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

Does not work.
What did I do wrong?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Chermoshentsev, 2019-04-25
@webgrill

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 question

Ask a Question

731 491 924 answers to any question