Forum Moderators: phranque

Message Too Old, No Replies

Linking Pages

         

domino

1:43 am on May 7, 2004 (gmt 0)

10+ Year Member



Hi I'm new here. Built my first site and having no troubles linking regular pages from the public file.

When I open my file manager, I have directories. In my public one which is considered my domain directory. For instance, if I had story.html in my public directory. I would do www.example.com/story.html and i would get the right link. Ok here is my question. I have other directories too. The main directories are Public, Private, cgi-bin and Members.

I have a file in my members directory called chatroom.html. I want the link to that file. when i do www.example.com/members/chatroom.html, i get an error opening the page. I've tried example.com/chatroom.html, I've tried every combination I can think of and i truly don't know what the link would be or the right path would be. I plan on putting a .htaccess file in there once I get all the pages all sorted and linked properly but I can't till i know what the right path to the Member directory would be.

I'm using Rogers Hosting which is an Apache Server and the file manager and directories look exactly like this .... <snip>

Hope I haven't confused anyone. Can anyone help?

thanks in advance.

domino (laura)

[edited by: Woz at 2:02 am (utc) on May 7, 2004]
[edit reason] No URLs please, see TOS#13 [/edit]

vkaryl

1:52 am on May 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Laura.

You need to ditch the URLs per the TOS. And that last one leads to a login page which isn't a help anyway.

If your Members folder on your webspace is spelled with the capital M, then your path needs to show that too. Some servers etc. are SERIOUSLY picky about upper & lower case....

bakedjake

1:53 am on May 7, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



To be specific, UNIX based servers are generally case sensitive while Windows based servers generally are not.

But, I think the problem is that your webspace root is mapped to your "Public" directory. So if you wanted a "members" directory in your webspace, you'd have to create it under the "Public" directory. So on the file system, the file would be stored in:

/Public/members/chatroom.htm

But to get to it from the web, you'd access it by going to:

www.example.com/members/chatroom.htm

Make sense?

domino

4:13 pm on May 7, 2004 (gmt 0)

10+ Year Member



Yes I get it and thanks for the welcome both of you. Sorry about the URL listing but thanks for informing me. I really must have missed that point in the TOS.

Ok I see your point about opening a directory in the Public Directory. Yes my webserver is very case sensitive so that isn't the issue.

Now can i put a .htaccess file in that member directory to keep ppl out without membership if its in the public file (which has all my free stuff), will it work that way?

so if i had a story section that was for members only. and I put a member directory in my public folder (which is for everyone), it would work ok?

thanks for the quick response too. appreciate it.

domino (laura)