• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Redirecting router filter link?

#1
Hello, so I have a route filter "pages/live" to "live/". How do I redirect abc.com/live to another router filter "/pages/watch" -> "watch"?

So if someone goes to abc.com/live they get redirected to abc.com/watch?

Thanks in advance!
 

Mike

XenForo developer
Staff member
#2
I'm a little confused, because you're already redirecting pages/live to live/, so you can't really redirect live/ to something else. Can you clarify?
 
#3
I'm a little confused, because you're already redirecting pages/live to live/, so you can't really redirect live/ to something else. Can you clarify?
Basically my old users are used to just typing in .com/live, but i want to change it to .com/watch.

So incase any old users still type in url .com/live, I would need them to be redirected to the new page .com/watch.
 

Mike

XenForo developer
Staff member
#4
I assume you've already changed the existing route filter (or will), but when you do that, create a new one with:

Find route: watch/
Replace route: live/
Enable "Incoming URL conversion only"

(With incoming only it looks backwards, but it will do what you want.)
 

Mike

XenForo developer
Staff member
#6
That's what my previous example should have done (though it may require a trailing slash, you may be able to remove both of them but I'm not positive).
 
#7
So I added a second route like you said:
Find Route: live/
Replace With: watch/
Incoming URL conversion only Enabled

When typing in www.example.com/live
Error
The requested page could not be found.

Is there no simple code to put in EXTRA.css that would redirct .com/live to .com/watch?