Redirect – Using regex to redirect if the source URL contains a certain string
-
Hi,
I have this URL example: https://www.domain.com/index.php?comp=article&category=67
It (and others like it) contain the strong “index.php?comp=article”.
I wanna say for all old URLS’s that have that string in them redirect to /documents instead.I have this setup in the plugin as a REGEX redirect:
SOURCE: /index.php?comp=article(.*)
TARGET: /$1/documents/Would this work?
Thank you.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Redirect – Using regex to redirect if the source URL contains a certain string’ is closed to new replies.