Welcome to WebmasterWorld Guest from 54.205.88.118

Need advice about folder/index.html linking

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

10+ Year Member



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)

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



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

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



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)

10+ Year Member



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)

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



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

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



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

Featured Threads

Hot Threads This Week

Hot Threads This Month