So the redirect should be:
HTML Code:RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.domain\.com$ RewriteCond %{HTTP_HOST} ^www\.domain\.net$ RewriteCond %{HTTP_HOST} ^www\.domain\.org$ RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
This is a discussion on Multiple domains pointing to site.com within the General Discussion forums, part of the vBulletin SEO Discussion category; So the redirect should be: HTML Code: RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.domain\.com$ RewriteCond %{HTTP_HOST} ^www\.domain\.net$ RewriteCond %{HTTP_HOST} ^www\.domain\.org$ RewriteRule ^(.*)$ ...
So the redirect should be:
HTML Code:RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.domain\.com$ RewriteCond %{HTTP_HOST} ^www\.domain\.net$ RewriteCond %{HTTP_HOST} ^www\.domain\.org$ RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
It should be:
(i.e. "redirect all request that are NOT pointing to domain.com")Code:RewriteCond %{HTTP_HOST} !^domain\.com$ RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Thanks Oleg![]()
I have a work friendly Ulr that I don't want redirected to the main url. The problem I'm having is that it is showin the hompage of 2nd domain but when you click on a link it redirects to the main domain. Is there any way around It.
Hello Dave,
vBSEO always uses forums URL as defined in vB admincp options to create links.
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
I believe it is to let it know the condition part is over.
The Forum Hosting - Forum Hosting from the Forum Experts
Yes, it means that hostname should match domain.com *exactly, i.e. Xdomain.com or domain.comX are NOT matching.
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Can I confirm something here:
I have:
and I want to only use www.mydomain.comHTML Code:www.mydomain.com www.mydomain.net www.otherdomain.com www.otherdomain.net
so I think you are saying that I create aliases of www.mydomain.com
and then add this to the .htaccess file in www.mydomain.com:HTML Code:www.mydomain.net www.otherdomain.com www.otherdomain.net
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.mydomain\.net$
RewriteCond %{HTTP_HOST} ^www\.otherdomain\.com$
RewriteCond %{HTTP_HOST} ^www\.otherdomain\.net$
RewriteCond %{HTTP_HOST} !^mydomain\.com$
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]
Is this correct - thanks!
I just put a 301 code in an index.html folder to do this, should I use the htaccess or is the html file work?
My forums: General Forums | Admin Talk (running xenforo)