When I go to an old URL it just redirects me to the home page. Any suggestions?
That usually means the import log table name is wrong in the 301config.php file. The name is usually one of these two:
xf_import_log
archived_import_log
When I go to an old URL it just redirects me to the home page. Any suggestions?
They would do 1 redirection to /threads/1234/ and then, if you have permission to view the thread, the final URL.
rewrite ^/forum/(\d+)-(.+)/page-(\d+)$ /forums/$2.$1/page-$3? permanent; # forum page
rewrite ^/forum/(\d+)-(.+)/$ /forums/$2.$1/? permanent; # forum
rewrite ^/topic/(\d+)-(.+)/page-(\d+)$ /threads/$2.$1/page-$3? permanent; # topic page
rewrite ^/topic/(\d+)-(.+)/$ /threads/$2.$1/? permanent; # topic
rewrite ^/user/(\d+)-(.+)/$ /members/$2.$1/? permanent; # user
<ifModule mod_deflate.c>
<filesMatch "\.(js|css|html|php)$">
SetOutputFilter DEFLATE
</filesMatch>
</ifModule>
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /forums/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(jpeg|jpg|gif|png)$ /forums/public/404.php [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /forums/index.php [L]
</IfModule>
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
<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]
</IfModule>
RewriteBase /forums
Actually, the topics and forums redirect fine, however if you goto the old forum directory (/forums) it shows the IPB board still. Something still is not right...
# 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]
RewriteRule .* /xf/? [R=301,L]
threads indexed in Google go to the new form index. If I type in the old thread url it redirects to the new thread. Are the Google indexed links supposed to go to the index?
Im getting too many redirects... Any idea what would cause this?
Default files the only thing i changed was the table log name in 301. I feel like pulling my hair out.
I tried rewritebase /forum which is the folder of where xenforo is installed and invisionboard.
We use essential cookies to make this site work, and optional cookies to enhance your experience.