The Glory of Absolute Linking (As Opposed to that Relative Linking Crap!)

by | Dec 20, 2018 | Best Business Helps | 0 comments

All Premium Themes And WEBSITE Utilities Tools You Ever Need! Greatest 100% Free Bonuses With Any Purchase.

Greatest CYBER MONDAY SALES with Bonuses are offered to following date: Get Started For Free!
Purchase Any Product Today! Premium Bonuses More Than $10,997 Will Be Emailed To You To Keep Even Just For Trying It Out.
Click Here To See Greatest Bonuses

and Try Out Any Today!

Here’s the deal.. if you buy any product(s) Linked from this sitewww.Knowledge-Easy.com including Clickbank products, as long as not Google’s product ads, I am gonna Send ALL to you absolutely FREE!. That’s right, you WILL OWN ALL THE PRODUCTS, for Now, just follow these instructions:

1. Order the product(s) you want by click here and select the Top Product, Top Skill you like on this site ..

2. Automatically send you bonuses or simply send me your receipt to consultingadvantages@yahoo.com Or just Enter name and your email in the form at the Bonus Details.

3. I will validate your purchases. AND Send Themes, ALL 50 Greatests Plus The Ultimate Marketing Weapon & “WEBMASTER’S SURVIVAL KIT” to you include ALL Others are YOURS to keep even you return your purchase. No Questions Asked! High Classic Guaranteed for you! Download All Items At One Place.

That’s it !

*Also Unconditionally, NO RISK WHAT SO EVER with Any Product you buy this website,

60 Days Money Back Guarantee,

IF NOT HAPPY FOR ANY REASON, FUL REFUND, No Questions Asked!

Download Instantly in Hands Top Rated today!

Remember, you really have nothing to lose if the item you purchased is not right for you! Keep All The Bonuses.

Super Premium Bonuses Are Limited Time Only!

Day(s)

:

Hour(s)

:

Minute(s)

:

Second(s)

Get Paid To Use Facebook, Twitter and YouTube
Online Social Media Jobs Pay $25 - $50/Hour.
No Experience Required. Work At Home, $316/day!
View 1000s of companies hiring writers now!

Order Now!

MOST POPULAR

*****
Customer Support Chat Job: $25/hr
Chat On Twitter Job - $25/hr
Get Paid to chat with customers on
a business’s Twitter account.

Try Free Now!

Get Paid To Review Apps On Phone
Want to get paid $810 per week online?
Get Paid To Review Perfect Apps Weekly.

Order Now
!
Look For REAL Online Job?
Get Paid To Write Articles $200/day
View 1000s of companies hiring writers now!

Try-Out Free Now!

How To Develop Your Skill For Great Success And Happiness Including Become CPA? | Additional special tips From Admin

Expertise Expansion is definitely the number 1 vital and most important matter of acquiring valid financial success in almost all procedures as one found in all of our modern society as well as in Around the globe. And so happy to explain together with you in the soon after regarding what effective Ability Development is; the way or what solutions we do the job to gain ambitions and sooner or later one definitely will give good results with what anybody likes to achieve every single day with regard to a maximum life. Is it so awesome if you are able to build up properly and discover success in the things you believed, in-line for, encouraged and worked well hard every single afternoon and definitely you grown to be a CPA, Attorney, an manager of a significant manufacturer or even a medical professionsal who can certainly remarkably bring amazing benefit and values to other individuals, who many, any society and local community undoubtedly esteemed and respected. I can's believe that I can support others to be very best skilled level who will lead significant products and help valuations to society and communities right now. How cheerful are you if you turned out to be one similar to so with your unique name on the headline? I have arrived at SUCCESS and overcome many the challenging pieces which is passing the CPA tests to be CPA. What is more, we will also cover what are the dangers, or some other matters that could possibly be on the means and exactly how I have personally experienced all of them and definitely will demonstrate you learn how to defeat them. | From Admin and Read More at Cont'.

The Glory of Absolute Linking (As Opposed to that Relative Linking Crap!)

Articles

There are advantages and disadvantages to using both absolute and relative links. Here I will explore the differences between the two, outline some pros and cons and also provide some additional information on how you can create hyperlinks in your site that will ensure that all links to your content remain in tact and properly functioning.

Back in the day, you know… the early 2000’s, I loved to use relative links. Inserting relative links made websites development easy in cutting-edge programs such as Microsoft FrontPage. By using relative links you could move files around in your directory structure and FrontPage would automatically update all your link paths throughout the site, keeping them connected to the pages in their new location. No more manually updating all your internal links by hand! It was brilliant.

But now I’m not as big a fan of relative links as I once was. I don’t have huge problems with them, but I understand the value in using absolute links rather than relative links. But perhaps I should take a step back and explain the difference between the two.

Absolute links contain the entire URL in the hyperlink.

This link contains the full path of the destination page. Copy and past that into your browser address bar and you’ll get to the destination. When used on a page, the link has no bearing on what page the visitor is on, only where they want to be taken. With absolute links, there is no mistaking the path to the destination.

Relative links show the path to the destination page using the minimal amount of information necessary, using the current page as the starting point.

Above are four examples of relative links. Let’s take them one at a time.

The first link takes the user to the noted page that is in the same directory as the current page. This relative link would not work if the two pages being linked were in different folders or different directory levels.

The second link contains ../ which takes the user back one directory from it’s current location. For this to work the page being linked to must be back one immediate directory.

If the link were to point to a page several directories back, then the relative link code would look like this: ../../page.html

The third example above simply points to a link that is in a sub-folder which resides in the same directory of the current page. To link to such a page the name of the folder, in this case “category,” needs to be represented in the link.

Finally, in the fourth example above, the relative link takes the user back a directory, and then forward to another subfolder.

Most WYSIWYG (what you see is what you get) HTML editors will automatically insert the correct relative link code when you insert your hyperlinks using their interface. This makes relative linking extremely convenient for the site developer.

Cautions of using relative links

While relative links can be more convenient for a variety of reasons, there are some cautions that you want to take, and some cases where relative links simply should not be used.

Scraped content: Over the years I’ve heard countless stories of a site’s content being scraped from their website and republished on another without permission. If the content that is scraped contains links, those links will often appear on the scraping site as well. If you used relative links then the scraped and republished links will essentially be broken. After all, what are the chances that the scraper site will also have a page located at /yourproducts/yourpage.html?

However, if you used absolute links, the scraped links will point people to the page you intended. Since the link contains the full link path, there really is only one destination, regardless of where on the internet that link resides.

Global include files: When using global include files for site navigation then you absolutely need to use absolute links. An include file allows you to grab content from a single page and insert it into any page on your site as if it belonged on that page. Include files are perfect for navigation because it allows you to easily edit, add or remove global navigation links on a single page but have it reflected on every other page that pulls that include file.

The reason to use absolute links in your include is because relative links will only be relevant from the location of the include file, not the actual page that displays the information. Let’s say that you keep all your include files in a folder called “includes”. Now create two relative links out:

Those links are only relative to the navigation file in the include folder. If you were linking directly from another page, those relative links should look like this:

While in this case the browser still might take the visitor to the correct page (if there is no folder to back up to) in other cases where the starting point is different, the links might be broken all together. The only way to prevent having these broken links and still use relative rather than absolute links is if you kept all your files in the same directory folder. That’s feasible, but usually not the most strategic thing to do.

The downside of absolute links

There is one downside to using absolute links. If you move your content or files from one location to another within your directory then it’s very possible that all links to that content will be broken. The simple solution is to perform a broken link check after making any such changes.

Checking for broken links on a regular basis is a good idea no matter what, so the downside here isn’t really significant.

Alternative link paths

While we are addressing how links are constructed I should point out a couple of other ways to create links that also have merit:

The single dot instead of the double dot before the slash tells the browser to go back to the root URL, much as if you had the full web address in the link. These two links are read exactly the same:

The down side of this is, again, if content gets scraped, the non-absolute link won’t work.

Sites using PHP can use the above code instead of the domain name, where the domain name has already been pre-defined. This works the same as an absolute link because it inserts the URL into the link on the server side, the same way include files are inserted. The advantages to this are that if content is scraped the proper, full, URL is included. Secondly, if you ever have to change domain names (let’s hope that doesn’t have to happen), changing all your absolute links is as simple as making the change to the defined host address.

Images and 404 pages

When deciding to use absolute or relative links there are a couple of other considerations. You’ll need to decide what kind of links to use for your images. Most times it’s easiest to use relative links for them, but, again, the same issues apply in regard to include files and scraped content. Though for the latter, I’d think it’s less of a worry.

Also, when creating 404/redirect pages you will want to use absolute links for all navigation, links and images. Using relative links is sure to create broken links and images, depending on how the visitor happened to be fed this page.

So what is best for SEO?

Honestly, it doesn’t really matter. Relative links use less code so an argument can be made to go that route. But also consider that search engines are often less forgiving than a browser. Just because a relative link works fine for your visitors, there are times when the search engines won’t be able to follow it properly if the link isn’t exact.

The best solution, then, is to use absolute links. By doing so you’ll avoid all of the potential issues noted above and it is really the only absolute way to know your links will work properly.

Stoney deGeyter is the President of Pole Position Marketing, a leading search engine optimization and marketing firm helping businesses grow since 1998. Stoney is a frequent speaker at website marketing conferences and has published hundreds of helpful SEO, SEM and small business articles.

If you’d like Stoney deGeyter to speak at your conference, seminar, workshop or provide in-house training to your team, contact him via his site or by phone at 866-685-3374.

Stoney pioneered the concept of Destination Search Engine Marketing which is the driving philosophy of how Pole Position Marketing helps clients expand their online presence and grow their businesses. Stoney is Associate Editor at Search Engine Guide and has written several SEO and SEM e-books including E-Marketing Performance; The Best Damn Web Marketing Checklist, Period!; Keyword Research and Selection, Destination Search Engine Marketing, and more.

Stoney has five wonderful children and spends his free time reviewing restaurants and other things to do in Canton, Ohio.

Spot on Stoney! Couldn’t agree more. I especially like using the PHP method to insert the site host dynamically. That also makes moving a site from a development server to the live domain a breeze. Great post. 🙂

The single dot before the slash is kind of superfluous, since starting every link with a slash just makes them relevant to the site’s root.

Correct me if I’m wrong, but if you just start with a slash won’t it look for the page or sub-folder in that same directory. I know I could test this out easily enough, but I’m just lazy right now. 🙂

Hey again. Bob is right about the slash…If you start the link with a slash, it starts from the root of the site. For example, if you link with href=”/destination-folder/”. If you link without it, like href=”destination-folder/”, that’s where it looks for sub-folders. It’s ok, I forget things too and sometimes colleagues have to remind me. 🙂

Scott, Bob… not sure why I didn’t know this. I typically us just a “/” in my links to go back to the home page (instead of /index.xxx). For whatever reason I never made the connection. Thanks for setting me straight.

No problem. Of course, the point is moot is you prefer absolute URLs in your links. If you link to /dir/dir/page.htm and the site gets scraped, that link will point to scraper-site/com/dir/dir/page.htm, whether it exists or not. Only the full URL will guarantee that the scraped link will continue to link to your site.

Thanks Stoney for this info..^^ I will try to do this next time..^^

Absolute links… well…

In development we use relative links. This just makes it easier to move about the website instead of every link taking you back online to a page that doesn’t yet exist.

I always use absolute links when it comes down to working internal contextual links. Hopefully I’m getting the best of both. But so far it does seem to work for me.

Robert, that’s where the PHP host address reference works wonders. You can use it when in development and then just chance the global reference to the domain name once the site rolls out.

> The single dot instead of the double dote (sic) before the slash tells the browser to go back to the root URL,

Actually, this says to start in the CURRENT directory, and is equivalent to not having the ‘./’ at all. If used from within a subdirectory, the link will be referenced from within that subdirectory – not the domain root.

Starting local links with a leading slash ‘/’ will force the link to be relative to the domain root (a “domain relative” link). This, IMHO, is the best option, since the links work if the file is moved into a new directory, works fine when tested on a staging server (whereas absolute links won’t), works when the nav HTML is stored in a separate file and used via an SSI, and are shorter to type.

Stoney: Great idea, but we’ve just moved all of our websites onto a django server. Thankfully development takes place and then we can set the urls in a single file. Fantastic for avoiding the website.com www.website.com www.website.com/index.html problem as every one of those resolves to a common url automatically.

I guess that’s yet another reason I recommend to my clients that we move away from PHP and onto this system. Once live it automatically resolves everything as an absolute URL. Although I must confess I have no idea how half of it works… but I’m just the SEO guy 🙂

This is not right at all. If you just use a slash at the beginning of a URL, the browser will pre-pend the url with the site address being used to access the site. This is absolutely needed when the site can be accessed via multiple addresses. For example, if the site can be accessed via exampleone.com or exmpletwo.com then using absolute links, as the author suggests, would cause all the links on exampletwo.com to go to exampleone.com. This can be highly undesirable if the two sites are not exactly the same but share similar code.
If absolute links are still desired then the solution given by Scott Allen is another good solution. This option is available in nearly every language. However, if you are building a static web site that does not include a server side language then simply starting URLs with a slash would suffice.
If you are using SSL on a site then this is also very important. Switching the URL from mydoamin.com to www.domain.com can cause a security notice to popup in a user’s browser which is something that is very definitely NOT desirable.

I also don’t like relative URLs but relative to site root URLs are perfectly fine AND make easy development work as well as sites that work with multiple URLs.

@Brandon: if the site can be accessed via multiple addresses then duplicate content is more of a worry at this stage. Simply 301 domains to a single one. This will prevent the linkjuice from being split between various duplicated pages.

Brandon, Robert is right, if you’ve got two sites that are mostly the same then you’re going to run into some serious duplicate content issues. It’s best to get them all combined into one.

Usin “./” is not same as using “/” . Though it may work fine at your end and when you test the product but it certainly will create some circumstantial error at the Client’s end. I am saying this from the experience.

My website used Relative URL’s. It use to work fine at my end. Everything worked fine for about 2 years and then one fine day i decided to look at the server logs.

I was surprised to see that there were quite many visitors stuck at pages that do not exist.

Like for example :

http://mywebsite.com/Folder-1/Folder-2/1234/ was the page. Relative URL’s were used to Load Script on every page. I was surprised to find users getting a 404 Error for this page http://mywebsite.com/Folder-1/Folder-2/1234/Original/js/english/main1.js.php/

The location of the script was http://mywebsite.com/Original/js/english/main1.js.php/

The website worked fine at our end. But one thing was clear. It was the “Relative URL’s causing this.”

So i would highly recommend to stick to the basics and use a “./” instead of just using “/”.

Trust me on this!

Also some scrapper systems are designed to Ignore website having Absolute URL’s. Thus using Absolute Url’s will save lot of your Server Bandwidth by keeping leechers away.

My advise is to USE “Relative” or “Absolute” from the very beginning and just stick to it. But please do not go for the switch after the project completion and especially when the code is Gigantic.

Switch from “Absolute To Relative” or vice versa creates more problems then it probably solves.

Both have “Advantages” or “Disadvantages”. If you are in for a short 100 or 200 Meter hurdle go for “Relative”. If you are in for winning the Marathon go for “Absolute”

Regards:

Rishi Rich

@ Rishi,

good point. Since writing this article I’ve found my server handling the ./ and / differently.

Read by small business people, our newsletter delivers a digest of articles from the top search engine marketing experts. You will learn about:

Our newsletter is the perfect way to stay up to date with all of the latest trends, events and techniques in using search engines to grow your business and make more sales. Subscribe here. Your email address will NOT be given to third parties.

FreeFind Site Search Engine – FreeFind adds a “search this site” feature to your website, making your site easier to use. FreeFind also gives you reports showing what your visitors are searching for, enabling you to improve your site. FreeFind’s advanced site search engine and automatic site map technology can be added to your website for free.

Buy UPC Codes
Get your products listed online!

Search marketing information for small business owners.

Fetching the best small business news.

A friendly place to share small business ideas and knowledge.

Small business support through education, resources and community

The directory of the best small business sites and tools.

Clicky

Research & References of The Glory of Absolute Linking (As Opposed to that Relative Linking Crap!)|A&C Accounting And Tax Services
Source

From Admin and Read More here. A note for you if you pursue CPA licence, KEEP PRACTICE with the MANY WONDER HELPS I showed you. Make sure to check your works after solving simulations. If a Cashflow statement or your consolidation statement is balanced, you know you pass right after sitting for the exams. I hope my information are great and helpful. Implement them. They worked for me. Hey.... turn gray hair to black also guys. Do not forget HEALTH? Competence Development is usually the number 1 critical and important component of having valid financial success in almost all careers as you will spotted in this society not to mention in Throughout the world. For that reason privileged to talk over together with you in the right after with regards to just what thriving Skill level Advancement is;. the simplest way or what strategies we do the job to gain dreams and gradually one will probably operate with what someone adores to achieve every single working day for a 100 % your life. Is it so wonderful if you are in a position to grow resourcefully and acquire accomplishment in the things you dreamed, designed for, follower of rules and labored really hard each individual day time and definitely you grow to be a CPA, Attorney, an owner of a considerable manufacturer or even a health care provider who can hugely bring about good benefit and values to other folks, who many, any contemporary culture and neighborhood clearly esteemed and respected. I can's think I can guide others to be top specialized level who will contribute vital systems and aid valuations to society and communities at this time. How joyful are you if you turn into one like so with your private name on the headline? I have got there at SUCCESS and prevail over most the difficult areas which is passing the CPA examinations to be CPA. Furthermore, we will also cover what are the traps, or some other issues that is likely to be on ones own approach and just how I have in person experienced them and might demonstrate you the way to rise above them.

Send your purchase information or ask a question here!

4 + 3 =

0 Comments

Trackbacks/Pingbacks

  1. costco tire - ... [Trackback] [...] Read More on that Topic: knowledge-easy.com/the-glory-of-absolute-linking-as-opposed-to-that-relative-linking-crap/ [...]

Submit a Comment

World Top Business Management Tips For You!

Business Best Sellers

 

Get Paid To Use Facebook, Twitter and YouTube
Online Social Media Jobs Pay $25 - $50/Hour.
No Experience Required. Work At Home, $316/day!
View 1000s of companies hiring writers now!
Order Now!

 

MOST POPULAR

*****

Customer Support Chat Job: $25/hr
Chat On Twitter Job - $25/hr
Get Paid to chat with customers on
a business’s Twitter account.
Try Free Now!

 

Get Paid To Review Apps On Phone
Want to get paid $810 per week online?
Get Paid To Review Perfect Apps Weekly.
Order Now!

Look For REAL Online Job?
Get Paid To Write Articles $200/day
View 1000s of companies hiring writers now!
Try-Out Free Now!

 

 

The Glory of Absolute Linking (As Opposed to that Relative Linking Crap!)

error: Content is protected !!