Redirecting /default to domain ??
-
Google analytics shows me that this: http://www.quicklearn.com/default.aspx is my "top content page"
This page doesn't redirect to my root domain: http://www.quicklearn.com
IT tells me that "/default.aspx" can not redirect to my domain. I am told: "You can only redirect deeper into the site."
We have had an ongoing issue with duplicate content (that we are in the process of correcting).
Anyone with experience in redirecting that can help? Any advice welcome
-
Hi Monique,
The solution is simple, ask him to put something like that in your default.aspx file, he should understand :
If Request.Url.ToString() = "/default.aspx" Then
Response.Status = "301 Moved Permanently"
Response.AddHeader("Location","http://www.quicklearn.com/")
End IfThese 4 lines (not 2 finaly, I forgot how asp was... asp) should do the trick.
Best regards,
Guillaume Voyer. -
Hi Monique,
How did things go with IT? Is there anything we can do to help convince them that this can be redirected?
-
Hi Monique,
If I were you, I would fire the IT... If your IT doesn't know the simple two lines of code that can solve this common problem, I think he doesn't deserve his job.
If all your inbound links are splitted between two pages that are in fact the same / and /default.aspx than you are losing a significant amount of link juice that could all go to the same place and this, without any doubt, affect your rankings.
Best regards,
Guillaume Voyer. -
Monique,
1)Let me explain something about adding rel canonical
it doesnt mean that it will INDEX quicklearn.com . But what is going to happen is when you will serve googlebot the /default. you will tell him that the canonical version of this page is quicklearn.com. and it means all SEO value will be credited to quicklearn.com and you will not have duplicate content between them two.
Now concerning what Google Analytics will show you exactly whats the user is landing on. and IMO it will still show you the /default
- i was checking your site and i cant seem to find the URL with default.aspx indexed?
and seems URL structure is working good
-
I haven't heard that one from a developer before (only redirecting deeper into a site), and I do see online people being able to do the redirects. I've used ISAPI rewrites on IIS servers before just fine to handle this, though with a different site architecture.
Just one URL for each page is the best practice. However you redirect, make sure that you use a 301 (permanent) redirect.
-
Help me to understand if I did this correctly, and what the fastest solution is ok ?
1.) We used rel=canonical on the http://www.quicklearn.com/default.aspx to eliminate a duplicate content issue. Google should index http://www.quicklearn.com. Google Analytics still shows /default.aspx as top though.
2.) All our subcategory pages have the same type of the thing. /default (etc)
[ http://www.quicklearn.com/biztalk-training/default.aspx --- http://www.quicklearn.com/biztalk-training/ ]
--->Can we use ISAPI? to fix this issue?
Do the /default pages (extra version) hurt us in indexing and Page rank?
-
If ISAPI rewrites didn't do the trick, did you try using rel=canonical ?
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
-
Disavow to all domains?
Hi there, I have several versions of my domain setup in Webmaster tools. Should I upload my disavow file against all of these domains? For example.....
Technical SEO | | niallfred
If I find a link pointing to: http://www.mydomain.com from: http://www.somespammysite.com do I need to add a disavow file in Webmaster tools for all my domain versions or only the version the offending links points towards? So... Only
http://www.mydomain.com
Or
http://www.mydomain.com
http://mydomain.com
https://www.mydomain.com
https://mydomain.com0 -
Google indexing staging / development site that is redirected...
Hi Moz Fans! - Please help. We had a acme.stagingdomain.com while a site was in development, when it went live it redirected (302) to acmeprofessionalservices.com (real names redacted!!) no known external links to staging site although staging site url has been emailed from Google Apps(!!!) now found that staging site is in the index even though it redirects to the proper public site. and some (but not all) of the pages are in the index too. They all redirect to the proper public site when visited. It is convenient to have a redirect from the staging site to the new one for the team, Chrome etc. remember frequently visited sites. Be a shame to lose that. Yes, these pages can be removed using webmaster tools.
Technical SEO | | mozroadjan
But how did they get in the index to start with? And if we're building a new site, and a customer has an existing site is there a danger of duplicate content etc. penalties caused by the staging site? We had a similar incident recently when a PDF that was not linked anywhere on the site appeared in the index. The link had been emailed through Google Apps, and visited in Chrome, but that was it. So 3 questions. Why is the staging site still in the index despite the redirects? How did they get in the index in the first place? Will the new staging site affect the rank of the existing site, eg. duplicate content penalties?0 -
Correct linking to the /index of a site and subfolders: what's the best practice? link to: domain.com/ or domain.com/index.html ?
Dear all, starting with my .htaccess file: RewriteEngine On
Technical SEO | | inlinear
RewriteCond %{HTTP_HOST} ^www.inlinear.com$ [NC]
RewriteRule ^(.*)$ http://inlinear.com/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^./index.html
RewriteRule ^(.)index.html$ http://inlinear.com/ [R=301,L] 1. I redirect all URL-requests with www. to the non www-version...
2. all requests with "index.html" will be redirected to "domain.com/" My questions are: A) When linking from a page to my frontpage (home) the best practice is?: "http://domain.com/" the best and NOT: "http://domain.com/index.php" B) When linking to the index of a subfolder "http://domain.com/products/index.php" I should link also to: "http://domain.com/products/" and not put also the index.php..., right? C) When I define the canonical ULR, should I also define it just: "http://domain.com/products/" or in this case I should link to the definite file: "http://domain.com/products**/index.php**" Is A) B) the best practice? and C) ? Thanks for all replies! 🙂
Holger0 -
Will Links to one Sub-Domain on a Site hurt a different Sub-Domain on the same site by affecting the Quality of the Root Domain?
Hi, I work for a SaaS company which uses two different subdomains on our site. A public for our main site (which we want to rank in SERPs for), and a secure subdomain, which is the portal for our customers to access our services (which we don't want to rank for) . Recently I realized that by using our product, our customers are creating large amounts of low quality links to our secure subdomain and I'm concerned that this might affect our public subdomain by bringing down the overall Authority of our root domain. Is this a legitimate concern? Has anyone ever worked through a similar situation? any help is appreciated!
Technical SEO | | ifbyphone0 -
Does http://my.dudamobile.com/ Effect SEO
Hi, Hope everyone is enjoying the new year! I was wondering if converting your desk top website to a mobile one, example via http://my.dudamobile.com/, has any negative effects on SEO. Did it effect your site? Do you recommend doing it? Does it effect links? When people link to your desk top URL does that authority carry to the mobile, or would it be better if they link to the mobile (m.website.com) URL? Is http://my.dudamobile.com/ a good choice? Any feedback, as always, is greatly appreciated! Thanks Jimmy
Technical SEO | | jimmy02250 -
Why is there duplicates of my domain
When viewing crawl diagnostics in SEOmoz I can see both "www.website.com" and a truncated version "website.com" is this normal and why is it showing (I do not have duplicates of my site on the server)? E.g.: http://www.klinehimalaya.com/
Technical SEO | | gorillakid
http://klinehimalaya.com/0 -
Backlinks go to "example.com" our homepage is "example.com/default.html" am I losing internal link power?
Hey everyone! Thanks again for everybodies contributions to my questions over the last few months. As the title states, our homepage is at "example.com/default.html" but everybody that backlinks to us (as expected) to "example.com" does that mean that I am probably losing a lot of the power of my links??
Technical SEO | | TylerAbernethy0 -
How to safely reduce the number of 301 redirects / should we be adding so many?
Hi All, We lost a lot of good rankings over the weekend with no obvious cause. Our top keyword went from p3 to p12, for example. Site speed is pretty bad (slower than 92% of sites!) but it has always been pretty bad. I'm on to the dev team to try and crunch this (beyond image optimisation) but I know that something I can effect is the number of 301 redirects we have in place. We have hundreds of 301s because we've been, perhaps incorrectly, adding one every time we find a new crawl error in GWT and it isn't because of a broken link on our site or on an external site where we can't track down the webmaster to fix the link. Is this bad practice, and should we just ignore 404s caused by external broken URLs? If we wanted to reduce these numbers, should we think about removing ones that are only in place due to external broken URLs? Any other tips for safely reducing the number of 301s? Thanks, all! Chris
Technical SEO | | BaseKit0