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

XF 1.5 How to redirect these links?

Discussion in 'Installation, Upgrade, and Import Support' started by sadiq6210, Sep 2, 2015.

  1. sadiq6210

    sadiq6210 Active Member

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Add these rules to the top of the .htaccess file in your /forum directory:

    Code:
    RewriteEngine On
    
    RewriteCond %{QUERY_STRING} (^|\?)do=file&id=([0-9]+)($|&)
    RewriteRule ^downloads\.php$ /forum/resources/%2/? [R=301,L]
    
    This assumes the source and target ids are identical.
     
    sadiq6210 likes this.
  3. sadiq6210

    sadiq6210 Active Member

    You are genius :D
    Thanks @Jake Bunce , it is working Perfect
     

Share This Page