Forum Moderators: martinibuster

Message Too Old, No Replies

does this change anything?

insite links

         

blue_eagle

2:26 am on Jul 23, 2005 (gmt 0)

10+ Year Member



In my site my linking has two methods since when I started to develope i didnt think about search engines. Now on some of my pages the linking is like ../widgets.php and some of the links are [widget.com...]

I wonder if that effects my pr or results in Search Engines, any respond would be kindly appreciated.

Thanks..

sit2510

9:34 am on Jul 23, 2005 (gmt 0)

10+ Year Member



No, you should not worry about it at all.

blue_eagle

4:09 am on Jul 26, 2005 (gmt 0)

10+ Year Member



Thanks sit, really appreciated.

sugarrae

2:18 am on Jul 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, I prefer absolute linking. At least if some moron steals your content he has to go through a *teeny* bit of effort to make the site workable on his domain.

I think Brett mentioned a few good insights as to why relative is the better practice a while back too in a thread on relative (/yourpage.html) and absolute (hzzp://www.yourdomain.com/yourpage.html) linking - do a search on google and you should come up with it. I remember one was about a user saving a page locally and the links not working if they read it from that saved version.

martinibuster

2:48 am on Jul 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If your site is complex, then there is a very small outside chance that the bots will get confused and poorly index your site, or not at all, if you use relative links. This is why Matt Cutts advises people to use absolute when possible.

As sr said, it makes it hard to click around on a local version, but you know, do whatever makes you sleep better at night.

WSQuant

7:03 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



if you use php on your site and want to use absolute linking but not have problems when working locally you can create a file that stores the domain name for you i.e. a domain.php file.

domain.php would hold something as simple as:
<?php $domain = "http://www.mysite.com/";?>
OR when working locally
<?php $domain = "http://localhost/";?>

then on your website include domain.php on all your pages and when you add a link to say mypage.html just make link look like:
[<a href='<?php echo $domain;?>mypage.html'>link text</a>]

There ya have it absolute linking with the ease of relative linking

Robert Charlton

8:08 pm on Jul 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Note that for the link to home, you'd be better off linking to either root or to http //www.widget.com/ than to index.php

That way, links to your home page wouldn't change should you ever change from php to some other file type.

Note: space replacing ":" in the above is for display on WebmasterWord only)

sugarrae

11:43 pm on Jul 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>>That way, links to your home page wouldn't change should you ever change from php to some other file type

That and it could help you avoid some of those nasty canonical homepage issues.