View Full Version : Internal Site Link Coding
fivebyfive
10-29-2005, 02:04 PM
Within a site's internal linking method in the <a href>, is it best to link this way:
www.foo.com/widgets/index.php
or -
www.foo.com/widgets/
Thakn you for opinions.
i always use this method
a href="/index.html">seo</a>
/ indicates from root.
Chris_D
10-30-2005, 08:59 AM
Hi fivebyfive
Personally - I'd always link to the sub without the file name.
If we just step back a little - the first thing is to name the page with a default file name rather than something 'creative'. Once that's done - we'll never need to use the 'filename.extension' in the link.
So - given a choice of naming one page www.foo.com/widgets/index.php or www.foo.com/widgets/blah-widgets.php - I'd choose www.foo.com/widgets/index.php
Then - because I've used a 'default' name - I can link to that page as www.foo.com/widgets/
Then - if I later decide to use another fileserver technology (.html .aspx .cfm etc) - any and all links to that page will remain unbroken.......
You could do that but even if you do change your technology there isnt really much of a problem. With a few changes you can parse html pages as php and etc. I always parse my pages as html. Changing technology isnt really a problem here its a few minor changes to the parser itself.
fivebyfive
10-30-2005, 05:26 PM
Thank you all for your replies.
Would anyone care to comment on the best way to, on a IIS box, to redirect /widgets/index.php to /widgets/ so that I can eliminate the dupe filter I am receiving from G due to organic linkers - linking to the index.php?
I think you are referring to /widgets/index.php and /widgets/ as different pages with the same content. You will not be penalised for this as this is normal web server behaviour. If people link to /widgets/ its really /widgets/index.php they are linking to.
fivebyfive
10-31-2005, 11:46 AM
when I run a site:insert site here search on G - the /widgets//index.php page is not shown and when you click the we've withheld similar pages link it then shows. This would indicate a dupe filter, no?
/wigets and /wigets/index.php is the same.
By linking to wigets, you are really linking to /wigets/index.php unless otherwise set up within apache httpd.conf.
When you make a request to either widgets or widgets/index.php they booth return from the same place /wigets/index.php
Most good working http tools will show you this and this is what google will see whilst making an http request.