Forum Moderators: phranque
I want to redirect gone all pages that contain
*whatever*.html?sort=*whatever*
for example
mypage.html?sort=3d&filter=4
anotherpage.html?sort=1a
etc.
It is important that not all pages containing sort= are redirected to gone status, only when they end in .html?sort=
Would this code work:
RewriteRule *.html?sort=* - [G]
i am sure i have an error somewhere, i believe the . wont be interpreted correctly, and not the? because they are special characters. How could i do this?
thanks in advance!
Jim
RewriteCond %{QUERY_STRING} ^sort=
RewriteRule \.html - [G] ;)