Welcome to WebmasterWorld Guest from 54.159.19.75

Message Too Old, No Replies

Need advice about folder/index.html linking

     
5:18 pm on Apr 19, 2013 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 19, 2004
posts:87
votes: 0


Hi all,

I was reading backdraft7's thread about 950, and had me wondering if a few of my sites are in the same predicament as he was due to canonical issues? He had mentioned he saw improvements after removing index.html from the links.

Currently, my sites are basicaly all linked like so: (in main navigation links)

mysite.tld/folder1/index.html
mysite.tld/folder2/index.html

So my question is do I need to change all of my links to:

mysite.tld/folder1/
mysite.tld/folder2/

TIA!
5:57 pm on Apr 19, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12673
votes: 142


Personally, I would.
7:06 pm on Apr 19, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


You should link to the shorter URL and redirect requests for the longer URL to the shorter URL.
7:28 pm on Apr 19, 2013 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 19, 2004
posts:87
votes: 0


ok I will change it to the shorter URL then.

I don't know much about writing htaccess code... can anyone direct me to where I can find out how to setup the code to redirect the longer URL to the shorter one?

So I would need to setup htaccess to redirect:

mysite.tld/folder2/index.html

to

mysite.tld/folder2/
8:09 pm on Apr 19, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12673
votes: 142


Hie thee to the Apache forum; they should fix you right up.
10:03 pm on Apr 19, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


The index redirect code has been posted in several threads this week, and every week since the dawn of the forum.