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

XF 1.3 Help with phpbb3 attachments rewrite...

Discussion in 'Installation, Upgrade, and Import Support' started by Arun Kumar, May 5, 2014.

  1. Arun Kumar

    Arun Kumar Member

    Hello, after importing to xen and using redirects. Few attachment url's are not working. How ever the attachment is on the database.

    So, how do i redirect this
    to this
    Last edited: May 5, 2014
  2. MattW

    MattW Well-Known Member

    Are you using apache?
  3. Arun Kumar

    Arun Kumar Member

    Yes Matt. Also, i have enabled full friendly url's and also edited my above post.
    Last edited: May 5, 2014
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Assuming those are root locations, add these rules to the top of the .htaccess file in your web root:

    RewriteEngine On
    RewriteCond %{QUERY_STRING} (^|\?)id=([0-9]+)($|&)
    RewriteRule ^download\.php$ /attachments/%2/? [R=301,L]
    Arun Kumar likes this.
  5. Arun Kumar

    Arun Kumar Member

    You the man. Thanks a ton :cool:

Share This Page