XF 1.5 Apache rewrite rule for tags

imthebest

Well-known member
Hi,

I have been using [Tinhte] XenTag until 1.4. Now that 1.5 includes tag funcionality, after importing all the tags from that add-on to XF's own tagging system, I'd like to redirect everything from:

Code:
http://www.mysite.com/forums/tags/some+thing -> http://www.mysite.com/forums/tags/some-thing/
http://www.mysite.com/forums/tags/some+thing/ -> http://www.mysite.com/forums/tags/some-thing/

http://www.mysite.com/forums/tags/some+thing+else -> http://www.mysite.com/forums/tags/some-thing-else/
http://www.mysite.com/forums/tags/some+thing+else/ -> http://www.mysite.com/forums/tags/some-thing-else/
Only redirect if after "tags/" there is a plus "+" symbol, otherwise do nothing (because the syntax is the same).

Thanks,
Super120
 
Additionally, a forwarding of the following would be great:
Code:
http://www.mysite.com/forums/tags/?t=some+thing -> http://www.mysite.com/forums/tags/some-thing/
http://www.mysite.com/forums/tags/?t=some+thing/ -> http://www.mysite.com/forums/tags/some-thing/
as XenTag also offers a /tags/?t=some+thing linking for special characters.
 
Top Bottom