Question about domain redirects
-
One of my clients has an odd domain redirect situation. See if you can get your head round this:
Domain A is set-up as a domain alias of Domain B
Entering domain A or domain B takes you to default.asp on domain B.
The default.asp includes VB script to check the HTTP_HOST variable. It checks whether the main doman name for domain A is present in the HTTP_HOST and if so redirects it to domain A/sub-folder/index.htm. If not present it redirects to domain B/index.htm. In both cases the redirect uses a response.Redirect clause.
I think what is trying to be achieved is to redirect requests to Domain A to a sub-folder of Domain B.
It works but seems extremely convoluted.
Can anyone see problems with this set-up? Will link juice be lost along the redirect paths?
-
Just to add to this: here is how you 301 in vbscript:
<%@ Language=VBScript %> <%' Permanent redirection Response.Status = "301 Moved Permanently" Response.AddHeader "Location", "http://www.domain.com/" Response.End %>
-
Thanks James.
-
yes, this is a problem! response.redirect is a 302 - you at a minimum should be using 301.
however, i recommend you get to the bottom of this and find out what the real intent is here. if one of the domains is old and needs to be shut down then redirects can make sense - but it might all be a mistake. Using 302's shows that whoever set it up didn't know too much about what they were doing
-
The content is not duplicated but there are certainly separate inbound links to the two domains.
-
Thanks Mike, I didn't create the redirect set-up for this client so I'm not sure why it was done this way. As you say a rewrite rule in the .htaccess file will be my recommendation to the client.
-
There may be other issues. Is the content the same on the two sites? Why should Google index both if that is the case? Also any inbound links gained may be split between the two domains.
Seems a little convoluted to me.
-
I don't know VB scripting but you could use a RewriteRule with a 301 redirect in your .htaccess file? You can redirect domain A traffic to a subfolder on domain B and by using 301 you'll pass all the juice. I'm not sure if your VB script response.Redirect is generating a 301 or not. If it is then you're probably not losing any juice.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Redirect multiple domains to 1 domain or not?
Hi there, I have client who has multiple domains that already have some PA and DA. Problem is that most websites have the same content and rank better on different keywords.
Technical SEO | | Leaf-a-mark
I want to redirect all the websites to 1 domain because it’s easier to manage and it removes any duplicate content. Question is if I redirect domain x to domain y do the rankings of domain x increase on domain y? Or is it better to keep domain x separately to generate more referral traffic to domain y? Thanks in advance! Cheers0 -
Sub Domain Redirect
Hey Everyone, Here is the situation : Currently, a website's sub domain is being redirected to the main website home page. We're having issues getting the sub domain pages indexed. Just want to confirm that it is because of the redirect on the sub domain URL. Should we kill the sub domain redirect and set it up as it's own page? Will that solve the indexing issue for the sub domain pages. More explanation below: subdomain.domain.com currently redirects to domain.com We're having issues indexing pages belonging to the sub domain ( subdomain.url.com/page1 or subdomain.url.com/page2) Appreciate your input in advance. Cheers,
Technical SEO | | SEO5Team0 -
URL redirect question
Hi all, Just wondering whether anybody has experience of CMSs that do a double redirect and what affect that has on rankings. here's the example /page.htm is 301 redirected to /page.html which is 301 redirected to /page As Google has stated that 301 redirects pass on benefits to the new page, would a double redirect do the same? Looking forward to hearing your views.
Technical SEO | | A_Q0 -
What is cross domain?
what is cross domain? can any one explain in simple language ?
Technical SEO | | constructionhelpline0 -
What is the advantage of using sub domains instead of pages on the root domain?
Have a look at this example http://bannerad.designcrowd.com/ For each category of design, they have a landing page on the sub domain. Wouldn't it be better to have them as part of the same domain? What is the strategy behind using sub domains?
Technical SEO | | designquotes0 -
Domain Aliases
Hi there, I've got two sites mysite.com and mysite.org .org is indexed by google, .com doesnt seem to be. .com is used for some material that is sent out, and accounts for about 20% of incoming visotors. (80% end up on .org) Is there any positive or negative effect from this? Would I benefit from 301'ing the .com to .org?
Technical SEO | | dencreative0 -
301 Redirect
The SEOmoz crawl campaign found some 404 errors in my Joomla site poker-brands.ca. So, I figured I would set up 301 redirects in my hosting account to make sure bots don't read that there is a page missing. For example: This link gave a 404 error in the crawl: http://www.poker-brands.ca/download-pokertracker-software/holdemmanager I redirected it to: http://www.poker-brands.ca/download-pt3-pokertracker-software/holdemmanager-hem-hm2 However, when I visit the first link it doesn't send me to the second link. Am I supposed to get forwarded to the second link now?
Technical SEO | | Uramark0 -
Domain tld question
Hi all, I have a question regarding the ranking of exact match tld which is co.uk Currently I have a .com domain with PR of 3 and the problem is that it have one word in front of my desired keyword, so it's not exact match. I have managed to buy an exact match but it's co.uk The questions are: Will a co.uk rank better for UK than .com domain I am reading at SEOMOZ that exact match domain value is getting lower, so is it worth to redirect my current .com domain to co.uk just to get rid of that one word and start all over again with exact match. Thanks
Technical SEO | | VasilTasev0