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

XF 1.4 Impossible to redirect URLs

Discussion in 'XenForo Questions and Support' started by imthebest, Oct 13, 2014.

Thread Status:
Not open for further replies.
  1. imthebest

    imthebest Formerly Super120

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


    Which should redirect respectively to:


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

    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.

  2. Liam W

    Liam W Well-Known Member

    It isn't impossible, but it would require using an unfiltered string.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    You have posted this thread, or a variation of it, multiple times.
Thread Status:
Not open for further replies.

Share This Page