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
Post a Comment