Remove var from links using htaccess redirect -


i have read lot of answers not find solution.

at moment made redirect in htaccess:

redirect 301 /best-verkocht?p=1 https://website.nl redirect 301 /best-verkocht?p=2 https://website.nl redirect 301 /best-verkocht?p=3 https://website.nl 

the result following link made: https://website.nl/?p=1

what best , easy way rid of var?

redirect 301 /best-verkocht https://website.nl? 

if need limit matches p values 1, 2, , 3, you'll need use mod_rewrite:

rewritecond %{query_string} ^p=(1|2|3)$ rewriterule ^best-verkocht$ https://website.nl [l,r=301] 

Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -