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

XF 1.2 URL routing help

dvsDave

Well-known member
#5
Sigh... Here's what I've got, but I know it's not working:

Code:
RewriteRule /wiki/([A-Za-z0-9-]+)$  wiki/?title=$1 [NC,R=301]
 

Jeremy

Well-known member
#7
I expect a lot of people do. I'm slightly distracted, but I don't want to write RegEx without my regexpal.com up to see how it'll interact.
 

Jake Bunce

XenForo moderator
Staff member
#9
Old URL:

http://www.controlbooth.com/wiki/Safety

Current URL

http://www.controlbooth.com/wiki/?title=Safety

Google is screaming bloody murder that the old URL's aren't working. The question I have is, would it be better to use route filters to point google in the right direction, or to use mod rewrite to make the new URL's look like the old ones?
Put this at the top of the .htaccess file in your web root:

Code:
RewriteEngine On

RewriteRule ^wiki/(.+)$ /wiki/?title=$1 [R=301,L]
That should do it.