I have a website that has many requests for pages that do not exist.
All requests are based on an existing page, but have RK=0/RS= plus a random string of characters at the end.
For example, the query:
www.domain.com/folder/article/RK=0/RS=M9j32OWsFAC_u8I6a0xOMjYKU_Q-
but the page www.domain.com/folder/article exists.
I would like to use htaccess to say:
if RK=0/RS= exists, delete it and everything after
but could not get it to work.
All htaccess rules talk about deleting query strings, but I guess because it doesn't ? This is not a request.
Can someone help me figure out how to do this?
regex apache .htaccess mod-rewrite
user82320
source share