I have domain like www.abc.in and would like to buy www.abc.com . As everyone is used to .com . I'm little bit confuse if two domain point to same IP address will it effect
my
1) Alexa rank.
2) Page rank.
3) Inbound and outbound links
If your answer is yes , please suggest me how can i solve this issue .
You can redirect www.abc.com to www.abc.in so if someone opens .com domain it automatically opens .in. Otherwise if you want to use .com only then you can make 301 redirects which is SEO friendly and your ranking will not be affected. Still, I would prefer 1st one personally
Related
I am experiencing an issue with the IIS Rewrite Module and nopCommerce.
Situation:
I have several domains (Domain1.ca, Domain2.ca, etc.), each redirecting to a main domain (MainDomain.ca) at the Registrar level (using a CNAME record). Is it possible, using the IIS 8 Rewrite module, to retain the original HTTP_HOST value of the domain originally browsed to (Domain1.ca, Domain2.ca, etc.) instead of the redirected domain (MainDomain.ca)? I need this for the following reason:
In nopCommerce, each store corresponds to a unique domain (Store1 = Domain1.ca). To determine which store is active, nopCommerce obtains and resolves the "HTTP_HOST" value.
Unfortunately, since all domains get redirected to the main domain (MainDomain.ca), the original HTTP_HOST value (Domain1.ca) is lost. Therefore, not knowing which specific store needs to get activated, nopCommerce activates the first one in the list.
I assume that when a site has been redirected to, the original HTTP_HOST value is overwritten.
Does anyone have any experience with nopCommerce, HTTP_HOST, multi-store, domain redirection?
a CNAME does not perform any redirection.
A CNAME simply says that domain1.com will us ethe same dns records as domain2.com, aka it is an alias.
So if you are really are redirecting from your domain registrar then you are not using a CNAME record to do this. You must be using a REDIRECT service at the registrar, the most common one is an FRAME redirect, where they create a website for domain1.com and inside they put a frameset which points to domain2.com
I would suggest that remove this, and just use the CNAME only and then do the redirect at your webserver using URL REWRITE, this will then allow you to retain the original host name.
When I was doing some web design, I found one interesting thing.
When I type
http://example.com/xxx/xxx
it always asks me for credentials. However, when I use
http://www.example.com/xxx/xxx
it logs me in directly! I know there is something with the cookie.
But what I really want to know is:
What is the difference between http://example.com and http://www.example.com?
Do tell me it is the browser automatically adding "www" to the url.
Thanks,
: )
www is a subdomain like any other (e.g. http://math.stackexchange.com/). It's just a convention to have it point to the same place as the main domain. This answer has some good points about why you would use www.
I have two website A and B.
I will close the first website and redirect all trafic toward B with 301 redirection.
I would like to identify on B the trafic that come from A thank to this redirection.
But I can't put a tracker on the URL. How I can do that in a different way ?
Thank you all
You can get the url of the page (from where the form data is posted to the current page) by using-
$url=$_SERVER['HTTP_REFERER'];
But this can't be trusted completely cause the 'http header' informations can be changed or hacked or the user may use proxy server.
you can do it in javascript i n Site B
document.referrer will return the referring url to this address.
I have a business requirement, where i should show a different URL in the address bar from the actual. Say for ex: I have hosted my site at Hum.com. But for some users, this URL should show up as CP.com at the address bar? Is it even possible?
The only way to do this is if you control both domains, hum.com and cp.com and if you configure your web server to serve the same application for cp.com and hum.com.
If above is the case (you control both domains), you can simply redirect the users to the appropriate domain using Response.Redirect.
This is easily done in Apache via NameVirtualHosts and I am sure IIS offers the same functionality.
Yes this is possible, but it's generally done at the DNS level and not within the application itself. You want the IP address of Hum.com to resolve to the same IP address as CP.com. This is how hosting sites such as Google Sites generally work.
To do this you need to own the DNS entry for your vanity domain name (i.e. CP.com) and you need to ensure that the hosting site is capable of associating requests for CP.com with the hosted website.
This can be done by redirect.
if(fUserOfCP && !HttpContext.Current.Request.RawUrl.Contains("cp.com/")){
Responce.Redirect(
HttpContext.Current.Request.RawUrl.Replace("hum.com/", "cp.com/")
, true);
}
This code is the idea, probably is better to break the RawUrl, check and reconstruct it on the redirect to avoid the existing of host on file name.
Assume that both names belong to you, and you have setup correctly the dns.
Rewrite is not possible on host name if this is your first thoughts.
If I have 2 domain names that point to same website (for example: microsoft.com and microsoft.net both point to microsoft.com), how can search engines distinguish that these two websites are the same website and not duplicate content?
My question is because I know that Google, for example, have a duplicate content filter, and I want know what to do to declaratively say that the two domains are the same and are not duplicate content websites.
Thanks!
Choose which is to be the primary domain and then implement a 301 redirect on the other.
Is it important that the user always stays at the domain entered, or are the second merely an alias for the first? If the latter is the case, you could do a HTTP redirect to the desired domainname, when the user visits one of the aliases.
EDIT: Guess Mat beat me to it. :-)
like guys says use 301 header to redirect. but also try to put a robot.txt to deny bots access and avoid have duplicate content
make one site a 301 redirect to the other
but do-not attempt the idiotic idea of a robots.txt
{as for 1 if the secondary site is a 301 to the "real" site a robots.txt couldn't exist as all requests for any content are directed at the primary, that means everything including a robots.txt
thus no duplicate content anywhere all content on one site only
the other just says {your in the wrong place go here instead}
You can establish a permanant forward (301) with most domain hoster.
For subdomains, you can normally have an HttpHandlers that take care of that.