Welcome to WebmasterWorld Guest from 54.234.129.215

Message Too Old, No Replies

Linking to page or page/

One question related to linking structure

     

manca

11:39 am on Sep 21, 2006 (gmt 0)

5+ Year Member



Hey guys,
I'm wondering is linking to one page the same no matter whether or not / is presented?

For example is the the same for me to link:
www.domain.com/page
and
www.domain.com/page/
(page is either page or directory)

I just want to know will google give points to "page" despite of the way it is linked. It wouldn't be cool if it would tread page and page/ separately, on that way it'll be lacking of PR, which mixed would be greater than separate with each page and page/.

So do you know the accurate answer of this question?

Thank you,
Manca

WiseWebDude

1:35 pm on Sep 21, 2006 (gmt 0)

5+ Year Member



I don't think Google even knows the answer to that for sure...I ALWAYS use a / in designating a folder though...

www.example.com/example/ and NOT www.example.com/example

I think the only difference would be that in the latter, Google could think example was a page (e.g. www.example.com/example.html or something like that), especially if there was a page in that folder named that...

IF you had this: www.example.com/index and you had a default page in that folder named index.html I could see where you might run into problems with that... of course the browser would show the index page, but I would rather be on the safe side and add a /.

I am, however, not an expert and just giving you MHO.

manca

6:34 pm on Sep 21, 2006 (gmt 0)

5+ Year Member



Thanks for replay man. I really appreciate it.
Anyone else wanna give his/her contribution on this one?

g1smd

7:06 pm on Sep 21, 2006 (gmt 0)

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



We all know that having www and non-www Duplicate Content is bad for a site, so I hope that everyone has a site-wide 301 redirect from non-www to www installed.

There is some interaction with URLs without the trailing / on them.

If you decide to base your site on www.domain.com and if the default server name (a server setting) is domain.com, and you have a 301 redirect from non-www to www, and all your internal links go to www.domain.com/folder (WITHOUT the trailing / on it) then the server will FORCE an internal 301 redirect to domain.com/folder/ (WITHOUT the www on it) before your own redirect kicks in to then do another redirect to www.domain.com/folder/.

This is very bad. You now have a redirection chain and you now have domain.com URLs in the chain. This is often easy to spot when you run Xenu LinkSleuth over your site: it reports double the number of pages that you expected (in the sitemap part of the report), and half them have a title of "301 Moved".

Check it. It is very important.

Fix it. Failure to do so will cause many problems.

I first highlighted this a couple of years ago. It is even more important to get this right on the "new Google".

manca

10:47 pm on Sep 24, 2006 (gmt 0)

5+ Year Member



"If you decide to base your site on www.domain.com and if the default server name (a server setting) is domain.com, and you have a 301 redirect from non-www to www, and all your internal links go to www.domain.com/folder (WITHOUT the trailing / on it) then the server will FORCE an internal 301 redirect to domain.com/folder/ (WITHOUT the www on it) before your own redirect kicks in to then do another redirect to www.domain.com/folder/."

All my internal links point to domain.com/folder/ with / in the end of url. The thing I wanna know is it good to have external links link to domain.com/folder or folder/? I mean, can it cause some problems with google because folder might get different PR than folder/ or it doesn't matter? Google should see them both as the same thing (when doing GET request)..

What do you think about it?

Thanks for the answer g1smd, tho!

g1smd

10:56 pm on Sep 24, 2006 (gmt 0)

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



Yes. Links to folders should include the trailing / on the end of the URL in the link.

It avoids the server having to issue yet another redirect before serving the page.

manca

11:13 pm on Sep 24, 2006 (gmt 0)

5+ Year Member



Ok,
Thanks for the answer again!

I'll make sure to have all my links poiting to page/ .

manca

11:17 pm on Sep 24, 2006 (gmt 0)

5+ Year Member



Oh, I forgot another thing.

Let's say I have my pages automatically "generated" with wordpress...Those are of course urls from DB, but I made them look pretty with mode_rewrite stuff...Do you and Google consider those pages (perm links) as pages or as folders?
For exmaple wordpress make post like?p=10 and with mod_rewrite it looks like post-ten.
Does big G consider those as pages or as folders, and do I have to link to them with / at the end of url or not?

THANKS A MILLION!

manca

1:55 pm on Sep 25, 2006 (gmt 0)

5+ Year Member



Anyone?

Romeo

3:10 pm on Sep 25, 2006 (gmt 0)

10+ Year Member



Does big G consider those as pages or as folders, and do I have to link to them with / at the end of url or not?

G consider them as URLs. An URL is an URL.
Only you and your server know if a specific URL is a folder (with some default index-file inside) or not.
If it is a folder, add the trailing slash to the URL, if it is not, do not. Do this consistently and everything will be fine.

If your server is forced to send out a 301 redirect to make the client aware that he should have requested "url/" instead of "url" and instruct him to try again accordingly, this is unnecessary and therefore should be avoided as it is an additional interaction/transaction that will slow down the retrieval of the URL.

G sometimes seems to have problems in attributing redirects correctly. So doing this linking right in the first place surely will do no harm.

Kind regards,
R.

g1smd

3:14 pm on Sep 25, 2006 (gmt 0)

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



Yes, only add the trailing / to folder requests. That is the convention.

manca

7:27 pm on Sep 25, 2006 (gmt 0)

5+ Year Member



BUt how could I know whether WordPress rewritten pages (mod_rewrite) are files or folders?

manca

8:32 pm on Sep 26, 2006 (gmt 0)

5+ Year Member



g1smd, can u advise?

SEOPTI

8:48 pm on Sep 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just get a real domain, a dedicated server and don't use wordpress.

manca

11:57 pm on Sep 26, 2006 (gmt 0)

5+ Year Member



I'd say bull#*$!, sorry no offence. But will you be so kind to elaborate your answer?

I do have my dedicated server and my domain and have WP installed there...I DO NOT see any single problem with WordPress...

 

Featured Threads

Hot Threads This Week

Hot Threads This Month