XF 1.4 Impossible to redirect URLs

Status
Not open for further replies.

imthebest

Well-known member
I migrated my forum from vBulletin 3.8 and now I'm having troubles redirecting the following URLs:

www.site.com/tags.php?tag=espa%F1ol
www.site.com/tags.php?tag=telefon%EDa+m%F3vil
www.site.com/tags.php?tag=videoc%E1mara

Which should redirect respectively to:

www.site.com/tags/español/
www.site.com/tags/telefonía+móvil/
www.site.com/tags/videocámara/

I tried with these .htaccess redirection rules kindly provided by @Jake Bunce:

Code:
RewriteCond %{QUERY_STRING} (^|\?)tag=([^&]+)&page=([0-9]+)($|&)
RewriteRule ^tags\.php$ /forums/tags/%2/page-%3? [R=301,L]

RewriteCond %{QUERY_STRING} (^|\?)tag=([^&]+)($|&)
RewriteRule ^tags\.php$ /forums/tags/%2/? [R=301,L]

RewriteRule ^tags\.php$ /forums/tags/? [R=301,L]

And also with the following tags.php file kindly provided by @xfrocks.

Unfortunately, none of these methods are working properly with these URLs. I asked a programmer about this and he told me the following: "the bug relating to URL encoded characters is unfixable, as the XenForo filter system returns a blank string as it classes them as an invalid string."

So is there a limitation in the XenForo system that prevents these URLs to properly redirect to the desired ones?

Please provide some assistance.

Thanks,
Super120
 
Status
Not open for further replies.
Top Bottom