I'm attempting to strip the query string from direct-requests to a specific url schema. Works in Apache, not in LSWS. Any tips?
Code:
# redirect direct requests for post-comment redirect urls
RewriteCond %{QUERY_STRING} ^commented=1
RewriteCond %{HTTP_REFERER} !domain.tld
RewriteCond %{HTTP_REFERER} !sub.domain.tld
RewriteRule ^(.*)$ /$1? [R=301,L]