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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -