How would I write a redirect rule in my htaccess file if the URL contains a certain string?
Example:
If it contains _Incapsula_Resource then redirect to https://www.mywebsite.com
Any help will be greatly appreciated.
Got it. Instead of _Incapsula_Resource , use SWJIYLWA=
RewriteCond %{QUERY_STRING} SWJIYLWA=
RewriteRule .* /? [R,L]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.