When doing internal linking back to your home/index file what is the best coding course of action?
-
When doing internal linking back to your home/index page is it best to set the code as linked to "www.thedomain.com" or "www.thedomain.com/" or just "/" - I'm attempting some canonicalization and our programmer is concerned about linking to just the URL as he's saying it's going to be viewed as an external source. We have www redirects in place that come back to just www.thedomain.com and a redirect to send the www.thedomain.com/index.php back to just www.thedomain.com . Any help would be appreciated, thank you!
-
That was my initial plan but our programmer didn't like the 'external' call being made. So we went with just '/' keeping it all on site. Man I love the Q & A here. Thanks for the help!
-
Helped a lot, thanks for taking the time!
-
That's what had our programmer displeased. Appreciate the assistance!
-
When linking to internal pages the preferred method is /.
Why?
Because it helps the speed of your site by saving a DNS query.
-
Since www.thedomain.com is the canonical version. I would link to http://www.thedomain.com from the other pages.
-
linking to the http://www.domain.com is the same as linking to / just develop the way which best suits your needs. The most important thing to do to avoid duplicate issues is to set the 301 to redirect everything to the same page thing you've already done so really there is no difference in that. About using the full url there's no issue on google seeing that as an external link since it's poiting to the same domain. hope this helps!
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
-
How to resolve warning of pages with redirect chain when its your http:// to https://www.
how do I write a 301 redirect in the htaccess file so that http:// goes straight to https://www. Moz replyEli profileHey there!Thanks for reaching out to us!
Technical SEO | | VelocityWebsites0 -
Paid links that are passing link equity from a blog?
We have a well-known blogger in our industry with whom we've had a long-standing relationship. We've had inbound links from his blog for many, many years. Today I noticed that we are running a banner ad listed on all pages of his blog under a heading that says "Sponsors." He has dedicated an entire page of his site giving full disclosure of all advertising. However, all of the links on his site pointing to us are passing link equity. To my knowledge they've been this way ever since they were first established years ago. I am fairly certain this fellow, with whom we have an excellent relationship, neither knows nor cares what a "nofollow" attribute is. I am afraid that if I contact him with a request that he add "nofollow" attributes to all of our links that it will damage our relationship by creating friction. To someone who knows nothing and cares nothing about SEO, asking them to put a "nofollow" on a link could either seem like a technical request they don't know how to handle, or something even potentially "shady" on our part. My question is this: Considering how long these links have been there, is this even worth worrying about? Should I just forget about it and move on to bigger fish, or, is this a potentially serious enough violation of Google Webmaster guidelines that we should pursue getting those links "nofollow" attributes added? I should add that we haven't received any "unnatural" link notifications from Google, ever, and haven't ever engaged in any questionable link-building tactics.
Technical SEO | | danatanseo1 -
Wordpress categories causing too many links/duplicate content?
I've just added categories to my wordpress site and some of the posts show in several of the categories. Will this cause me duplicate content problems as I want the category pages to be indexed? Also as I add more categories I'm creating more links on the page. They can't be seen to the user as I have a plugin that creates drop down categories. When I go to 'view source' though all the links are there so google will see lots of links. How can I fix the too many links problem? And should I worry about duplicate content issue?
Technical SEO | | SamCUK1 -
Robots.txt to disallow /index.php/ path
Hi SEOmoz, I have a problem with my Joomla site (yeah - me too!). I get a large amount of /index.php/ urls despite using a program to handle these issues. The URLs cause indexation errors with google (404). Now, I fixed this issue once before, but the problem persist. So I thought, instead of wasting more time, couldnt I just disallow all paths containing /index.php/ ?. I don't use that extension, but would it cause me any problems from an SEO perspective? How do I disallow all index.php's? Is it a simple: Disallow: /index.php/
Technical SEO | | Mikkehl0 -
SEO Disasters - Links to Stories of Site Moves/Rebuilds Gone Bad?
Hello, everyone.. I am looking for some links to stories, articles, what have you describing medium to large complex sites that have moved, changed CMS, changed domains, etc, and ended up in a total SEO disaster. Really appreciate anything the community here has or can find! Thanks!
Technical SEO | | DuPont0 -
Best strategy for category filtering links eg by colour
Hi All, I hope you can help with some basic on page seo questions! I have an ecommerce site which allows users to filter/restrict the view of a category by one or more colours. This is done by appending a querystring value to the url ie to view blue, green and purple widgets the link might be: www.example.com/my-widgets-category/?colors=123,92,64 On each category page is a group of coloured boxes with links to filter by that colour, (only if there are available coloured widgets in that category). Each category has rel=canonical set to be the appropriate unfiltered category url ie: www.example.com/my-widgets-category/ I used to have these colour filter links all nofollowed- but am not sure that this is a good idea. So my questions are: 1/ what are the implications of these colour links that can generate a lot of different urls (as you can keep on adding colours to the filter) and how can i enure that i am not shooting myself in the foot- my customers love it! 2/ I also have page=1 etc appended for paging through results- the canonical url is set in all instnaces to be the plain category page as above- do i need to add the rel=prev and re=next? 3/ all of these links can really bump up my total page link count- at the moment i have colour filtering boxes in my main menu drop downs so that users can filter all the products that exists in all of the nested child categories of top level categories by colour. Should i remove these to reduce my total link count, nofollow them or leave as is? Its a great site feature for users- i just don't want to be shooting myself in the foot unecessarily. Thanks!
Technical SEO | | blessig0 -
No inbound links. Should I link-build or create new content?
I have a PR4 site with good traffic but the blog is not very popular--the posts do not generate any backlinks and hardly get any traffic. Yet, I continue to kick out a new post every week. Site: http://www.stadriemblems.com/
Technical SEO | | UnderRugSwept
Blog: http://www.stadriemblems.com/blog/ I keep posting content so that Google keeps crawling the site and viewing it as fresh (and yes, I'm posting for my human visitors' benefit too!), but I'm wondering if eventually this will hurt more than help if Google detects all these new pages are not being linked to, and therefore starts viewing the site as low quality and devalues it. So should I: Keep posting Stop posting and build links to the posts Try to promote my blog to get more traffic and hope people link to it Something else or some combination of the above0 -
Best way to use affiliate links
What is the best practice to use amazon affliate links in blog posts? I have read different opinions on this, and want to be sure I'm using best practices. I sometimes link to amazon with an affiliate link on some of my posts, and am working on a top ten Christmas gift ideas for Children born with Down syndrome with lots of affiliate links on it. I'm want to be sure I'm using best practices when adding links like this. Tanks!
Technical SEO | | NoahsDad0