Forum Moderators: phranque
For what it’s worth, I believe my current attempt creates an infinite loop:RewriteRule ^sand(?!boxes).*$ /sandboxes [L]
RewriteRule ^sand(?!boxes) https://www.example.com/sandboxes [R=301,L]
That's assuming you are simply redirecting some pages. If so, your .*$ part isn't needed, since nothing is to be captured. ^sand(?!boxes$)
RewriteRule ^sand(?!boxes) https://www.example.com/sandboxes [R=301,L] RewriteRule ^sand(?!boxes$) https://www.example.com/sandboxes [R=301,L]
RewriteRule ^sand(?!boxes)$ https://www.example.com/sandboxes [R=301,L]
but neither of the following work for
even without the "https://www.example.com"