XF 1.5 .htaccess problems

Satix

Member
EDIT: Looks like both are working, but got misreported. Since this post is here anyway, is my .htaccess file okay?

Hi! I'm in a really tricky spot. I imported my forum from IPB, and installed the redirection scripts. These didn't work until I moved them directly under "RewriteEngine On". I then ran into the same issue with redirecting HTTP to HTTPS, so I moved the redirect for that underneath "RewriteEngine On", then it worked. Now, all the redirection scripts for IPB have stopped working. It seems like only one of these will work, and I have absolutely no clue how to fix this. Both are pretty crucial for my site's SEO, and some members are having trouble accessing topics now.

The relevant parts of my .htaccess look like this:
Code:
    RewriteEngine On
  
    RewriteCond %{HTTPS} off
  
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  
    # 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]

    #    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 /xenforo
    #RewriteBase /ip.board


    #    This line may be needed to enable WebDAV editing with PHP as a CGI.

    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]


    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -l [OR]

    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule ^.*$ - [NC,L]

    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]

    RewriteRule ^.*$ index.php [NC,L]

    RewriteRule ^xenforo/(.*)?$ /$1 [R=301,L]

Any help would be greatly appreciated, because I'm really stuck.

Thank you for your time!

My site url is https://lakevalor.net
 
Last edited:
Top Bottom