Ignore Path when Redirecting Using RegEx
-
I want to redirect all path of http://www.example.com/path/ to the homepage of http://www.example.com/new-path/ without passing the subpath.
I thought if I don’t specify $1 on the target path, the path won’t be passed but all paths are passed and there is no option to ignore path from the source.
For example
http://www.example.com/path/a
http://www.example.com/path/b
http://www.example.com/path/cwould all pass to
http://www.example.com/new-path/I tried
source path: /path/*
target path: http://www.example.com/new-path/but the result is
http://www.example.com/new-path/a
http://www.example.com/new-path/b
http://www.example.com/new-path/cI don’t want to pass a, b, c. I want them to be ignored.
I really really need help on this. Thank you very much.
The topic ‘Ignore Path when Redirecting Using RegEx’ is closed to new replies.