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

IPB Redirects - Nginx

Discussion in 'Installation, Upgrade, and Import Support' started by akia, Mar 3, 2013.

  1. akia

    akia Well-Known Member

    to rewrite my old threads etc from IPB there is a .htaccess file for the rewrites that has the following in:

    <IfModule mod_rewrite.c>
        RewriteEngine On
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /ip.board
        # IPS Rewrite Rules
        RewriteCond %{REQUEST_URI} /(topic|forum|user)/ [OR]
        RewriteCond %{QUERY_STRING} (^|&)show(topic|forum|user)= [OR]
        RewriteCond %{QUERY_STRING} ^/(topic|forum|user)/ [OR]
        RewriteCond %{PATH_INFO} ^/(topic|forum|user)/
        RewriteRule ^.*$ ips2xf.php [NC,L]
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d   
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data|js|styles|install) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    Can someone help me with what I'd need for nginx to get it working.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page