Try:
Code:Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.domain.com [L,R=301]
This is a discussion on Changing Domains: Directing Old Site to the New Site with htaccess within the General Discussion forums, part of the vBSEO SEO Plugin category; Try: Code: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.domain.com [L,R=301]...
Try:
Code:Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.domain.com [L,R=301]
The Forum Hosting - Forum Hosting from the Forum Experts
Check out our Webmaster Interviews on Admin Talk
I've had to move my site to another domain and I've got a bit of an issue I can't get my head around.
I have a wordpress install on the root of the domain and vbulletin in domain.com/forums/
the domain switch over is fine and both are working ok
the old domain 301s to the new domain fine for the wordpress install
though the forum is working on both domains, I tried putting the above code in the .htaccess in the /forums/ folder (of the old domain) but I'm getting a redirect loop error when I do that
any suggestions where I go from here, if you need any more info from me than let me know
any help is appreciated
Hello,
Are they on two different servers?
The Forum Hosting - Forum Hosting from the Forum Experts
same server, I got my hosts to set the new domain in place of the old one
the old one is now parked if that helps?
I presume I've got some rewrite conflict going on somewhere but I'm lost
What is your current .htaccess in your forum directory?
The Forum Hosting - Forum Hosting from the Forum Experts
that is the .htaccess on bloodbowlplaybook.com/forums/Code:RewriteCond %{HTTP_HOST} ^www\.bbtactics\.com$ RewriteRule ^(.*)$ http://bbtactics.com/forums/$1 [L,R=301] # Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap) RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA]
when I add:
that is when it gets the redirect loop on bbtactics.comCode:Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://bbtactics.com/forums/$1 [L,R=301]
Please make it:
Code:# Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / RewriteCond %{HTTP_HOST} ^www\.bbtactics\.com$ RewriteRule ^(.*)$ http://bbtactics.com/forums/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap) RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA]
The Forum Hosting - Forum Hosting from the Forum Experts
ok I've done that and bloodbowlplaybook.com/forums/ still isn't redirecting to bbtactics/forums/
my hosts added the following to the .htaccess in the root which seems to be working for the wordpress install in the root
I tried a variation of that in the /forums/ .htaccess but had no joy with that eitherCode:RewriteCond %{HTTP_HOST} ^bloodbowlplaybook.com$ [OR] RewriteCond %{HTTP_HOST} ^www.bloodbowlplaybook.com$ RewriteRule ^/?$ "http\:\/\/bbtactics\.com\/" [R=301,L]
Rather then parking it, are you able to use it as an addon domain?
The Forum Hosting - Forum Hosting from the Forum Experts
it is on a reseller account so should be able to
As I have no real experience with the parking, I normally just use the addon domain, and use the .htaccess from post number one of this thread and it redirects all traffic.
The Forum Hosting - Forum Hosting from the Forum Experts
I'll give that a go over the weekend instead then, thanks for your help
Right I scrapped the parked domain and set it up as an addon and used the code as suggested and it did the trick.
Thanks a lot for your help, may santa bring all you ask for!
Glad you got it all sorted out.
I hope he does as well, but I do not think he can afford the Alpine Star full leather suit I am asking for.![]()
The Forum Hosting - Forum Hosting from the Forum Experts