Tags are not supported by XenForo as far as I know.hi...
Old URL Tags Of Vbulletin. http://domain.com/tags.php?tag=......
New URLTags of Xenforo.
http://domain.com/tag/.....
I want to Redirect URL Tags when i converted from vbulletin to xenforo.
Help Me..
help me.Links comeback home pageYesterday,i used it.
But,I only use showthread,showpost,attach,member,..
And i didn't install addon_vb4Redri.xml.
It didn't work.It redirect all links to home page??
Click links: http://domain.com/showthread.php?id
It moved to home page : http://domain.com
Why??I must be doing something wrong
define('IMPORT_LOG_TABLE', 'archived_import_log');
Actually I never figured this out. Suppose my old forum installation is at http://www.domain.com/forums, and now on XF it's simply http://www.domain.com. Should the 301config.php file be on the root or under /forums?
So... How should I proceed? Can I remove the route filter and just remove the old vB install directory or do I need it to upload the redirect scripts?
I see mention of redirect scripts and .htaccess rewrite rules. Do I need both, or one or the other? The download for this resource has rewrite scripts and what looks like an add-on. Do I need both? I'm so confused!
RewriteEngine On
RewriteRule ^forums/forum\.php$ /forums/ [R=301,L]
RewriteRule ^forums/forumdisplay\.php/([0-9]+)-.*$ /forums/$1/ [R=301,L]
RewriteRule ^forums/member\.php/([0-9]+)-.*$ /members/$1/ [R=301,L]
RewriteRule ^forums/showthread\.php/([0-9]+)-.*$ /threads/$1/ [R=301,L]
Thanks! Should this go inside the: <IfModule mod_rewrite.c> block or before it?
Jake I moved from vB 4 (with Full friendly URLs) to XF over the weekend. Getting redirects to work has been a bear. I got threads working with the code you provided in this thread@BamaStangGuy
Hmm. Try this to avoid any conflicts:
Rich (BB code):# 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 RewriteCond %{HTTP_HOST} ^politicaljack\.com [NC] RewriteRule (.*) http://www.politicaljack.com/$1 [L,R=301] #make exception for XF's thread URL format RewriteRule ^threads/[^\.]+\.[0-9]+/ - [S=1] #redirect vB's thread URL format RewriteRule ^threads/([0-9]+)-.*$ /threads/$1? [R=301,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 # 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] </IfModule> AuthName "xenForo Test Bed" AuthUserFile "/home/politics/.htpasswds/public_html/xenforo/passwd"
That should work to avoid any conflicts with the redirects.
#make exception for XF's thread URL format
RewriteRule ^threads/[^\.]+\.[0-9]+/ - [S=1]
#redirect vB's thread URL format
RewriteRule ^threads/([0-9]+)-.*$ /threads/$1? [R=301,L]
It works. Many thanks @Jake Bunce !@Big Dan
Code:#make exception for XF's member URL format RewriteRule ^members/[^\.]+\.[0-9]+/ - [S=1] #redirect vB's member URL format RewriteRule ^members/([0-9]+)-.*$ /members/$1? [R=301,L]
RewriteEngine On
RewriteRule ^threads/([0-9]+)-.*$ /f/threads/$1? [R=301,L]
RewriteRule ^forums/([0-9]+)-.*$ /f/forums/$1? [R=301,L]
RewriteRule ^members/([0-9]+)-.*$ /f/members/$1? [R=301,L]
What do you recommend to avoid those 404 errors with tags?hi...
Old URL Tags Of Vbulletin. http://domain.com/tags.php?tag=......
New URLTags of Xenforo.
http://domain.com/tag/.....
I want to Redirect URL Tags when i converted from vbulletin to xenforo.
Help Me..
RewriteRule ^forums/member\.php/([0-9]+)-.*$ /members/$1/ [R=301,L]
RewriteRule ^foro/member.php?u=$1 /members/$1/ [R=301,L]
RewriteRule ^foro/member\.php\?u=([0-9]+)$ /members/$1/ [R=301,L]
RewriteEngine On
RewriteRule ^threads/([0-9]+)-.+$ /threads/$1/ [R=301,L]
We use essential cookies to make this site work, and optional cookies to enhance your experience.