Anthony Parsons
Well-known member
Get the following error on uploading the xml into beta3: Please enter a valid callback method.
RewriteRule ^/threads/ /c/threads
RewriteRule ^/forums/ /c/forums
<IfModule mod_rewrite.c>
RewriteEngine On
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]
RewriteRule ^/threads/ /c/threads
RewriteRule ^/forums/ /c/forums
</IfModule>
RewriteEngine on
RewriteRule ^/threads/ /c/threads
RewriteRule ^/forums/ /c/forums
## Redirection Rules
RewriteCond %{HTTP_HOST} ^ptsdforum\.org
RewriteRule ^(.*)$ http://www.ptsdforum.org/$1 [R=permanent,L]
## Joomla Rewrite Rules
#RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
#RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
#RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
#RewriteRule ^(.*)$ index.php [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
RewriteEngine on
RewriteRule forum/threads/(.+) http://www.mysite.com/threads/$1 [L,R=301]
RewriteRule forum/forums/(.+) http://www.mysite.com/forums/$1/ [L,R=301]
RewriteRule forum/members/(.+) http://www.mysite.com/members/$1 [L,R=301]
RewriteRule forum/posts/(.+) http://www.mysite.com/posts/$1 [L,R=301]
-snip-
Any solutions?
Yer, tried that and a few more methods... will give KKM's method a shot and see how it goes... I think its more to do with Joomla now being installed at the root, where the suite was installed, and it has its own built-in error system for URL's which is causing the rewrite redirects to fail. I don't think it is this mod...Have you tried putting the vB4 rewrite rules in /c/.htaccess? (and disabling the XF route redirect plugin)
<IfModule mod_rewrite.c>
RewriteEngine On
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>
RewriteEngine on
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
My threads got redirected, but my categories and forum paginations from my old vb4 are still the same and not redirect.
How I fix this, make this work ?
Unfortunately you will have to set up redirects yourself for vBSEO URLs, and individually in the case of ID-less forum URLs. The customisability of vBSEO comes at a price
The best thing you can do if using VBSEO is to get VBSEO to provide you the custom rewrite rules for your forum to revert the URL's back to your original VB4 mod_rewrite or basic URL's, leave it that way for a good 30 days, then convert over using this mod to redirect. That way, in 30 days Google will pretty much have changed 99.9% of your URL's in their index, without loss through any type of URL issues, then you get a clean conversion over to XF URL's, which will take another 30+ days to be 99% updated.
So....yeah.I'm sorry, but we can't assist you on this matter. Please contact XenForo support for further information.
We use essential cookies to make this site work, and optional cookies to enhance your experience.