View Full Version : Linking to sub folder

Mickey Finn
05-21-2006, 08:00 AM
Hi, Im hoping some one can help me here. I have the bones of my web site published and now I am trying to create a members only area. The site is nb-hollinhurst.com and the page I am stuck on is
http://nb-hollinhurst.com/owners_area.html On the right hand side there are more nav buttons to go to a sub folder I have named "owners". I have also password protected this folder. What I cant figure out is how I write the URL in the nav box to take the member in to this area. Do I go "nb-hollinhurst.com/owners/index.html" or is the route via "public_html ". also is there a quick and easy way of finding the URL once you have published, so that all you have to do is copy it in to the nav box. hope this clear what I need,and thanks in advance for any help.

05-21-2006, 11:11 AM

http://nb-hollinhurst.com is your root/public/main directory/folder.

http://nb-hollinhurst.com/owners is your sub dir

is the full path to any page in your sub directory

have fun......

Mickey Finn
05-21-2006, 03:37 PM
Hi thanks for replying,I am still having trouble because when I try and publish to "http:// nb-hollinhurst.com/owners/pagename" it comes up with an error notice. would this be because I have password protected it? Also when I publish to "public_html/owners" it publishes, but when I click on a button on the right, it can't find the page. bit lost now! M.

05-21-2006, 05:15 PM
If I have read your last post correctly, you are trying to publish to
"http:// nb-hollinhurst.com/owners/pagename"

When you publish a page to owners sub dir
just add /owners to the popup box at the bottom...

ie..... public_html/owners

Mickey Finn
05-21-2006, 06:42 PM
Hi again, I have done all that you have said, and I click on the button and it just goes to a page that says that the page could not be found. I know I am missing something quite simple, so please , if you know what I am doing wrong, please tell me. Thanks. M.

05-21-2006, 09:43 PM
Take off the password protect on your sub directory and lets start again.

Q. have you an index page in your sub dir "owners" ?

Mickey Finn
05-21-2006, 09:58 PM
Thanks, yes I do have an index page, when I tried to verify they would not verify the URL. M.

05-21-2006, 11:15 PM
I will repeat the question...............
have you an index page in your sub dir "owners" ?

I can see all your pages but I cannot see an index.html in your sub dir owners.

How did you create the sub directory "owners" ??

05-22-2006, 07:02 AM
I can't even see an "owners" folder...

05-22-2006, 10:08 AM
Mickey, go into your Cpanel and create the sub directory

without the quotes...............

Mickey Finn
05-22-2006, 10:25 AM
Hi, I created the file "owners" in the control panel, under sub domains. if I go into Blue FTP I can see the two folders, "nb-hollinhurst" and the other folder "owners". The idea is that the public can read the pages in "nb-hollinhurst" and the members will be able to click on the picture on the "owners_area" page in the "nb-hollinhurst" folder and pass into the"owners" folder which will be password protected. I have named the frount page in the "owners" folder "index" which I think I should do. I am hoping that this will work like a sub site in "nb-hollinhurst.com".Thats the plan anyway.
I can publish the pages to the "owners" folder, but I can't seem to link the sub pages together. I have tried nb-hollinhurst.com/owners/pagename, I have tried public-htlm/owners andmany more combanations. I guess that I have not hit on the right one. any help would be great as I am now a bit lost what to try now. Thanks M.

Mickey Finn
05-22-2006, 10:28 AM
Hi David, I haven't been using the quotes on the site I only have used them to try and make it clearer what I have done. sorry if I confussed you. M.

05-22-2006, 11:11 AM
No prob mickey, its that sometimes people type in exactly what they see
hence the no quotes part......

Now, goto: http://owners.nb-hollinhurst.com/
and you can see your index page......welcome to the owners only area

All your other nav buttons for members only should go to your sub dir index page as above.

Mickey Finn
05-22-2006, 11:46 AM
David, Thanks alot, I was putting the owners part after nb-hollinhurst instead of in front. I can now understand where I was going wrong. Your great. M.

05-22-2006, 12:11 PM
My pleasure mickey...........like your site, its coming on well........

Have fun.

Mickey Finn
05-22-2006, 12:30 PM
One last question, the other pages in the owners folder,to link to them in this folder do I use http://owners.nb-hollinhurst.com/pagename, or should it go to public_html/owners/pagename. Also, do I have to have the password protection of to publish to this folder. Thanks. M.

05-22-2006, 01:13 PM
Dont get confused between publishing....public_html
and linking your pages..............
What you have now is your public dir(where most of your files/pages are stored..........
AND a protected sub dir with your index page.

All your nav buttons (I would only have 1)that point to your protected area (owners) should go to
your sub dir index page........then a fresh set of nav buttons on your protected index page will then point to the other pages in your protected area.

On the question of publishing to your protected area:

Your main password gives you access rights to your Main directory and
ALL sub directories.

Hope thats a little clearer...............

Mickey Finn
05-22-2006, 03:07 PM
So what you are saying is that all the other pages that I want to protect should be published out side the owners folder, and the index page inside the folder. The index would then be protected with the nav buttons pointing to the pages which are outside. I have published all the pages to the owners folder, should I now delete them and republish in the nb-hollinhurst folder. Sorry for being a bit slow here, but are they safe outside of the protected folder? M.

05-22-2006, 03:26 PM
I still can't seem to understand what you have done. You have probably set the "owners" folder as subdomain of "nb-hollinburst.com", but the folder "owners" is not a subfolder of "nb-hollinburst" ?
Is "nb-hollinburst.com" the main domain of your account, or is it an addon domain of some other main account ?

05-22-2006, 03:28 PM
This is what I wrote above:

then a fresh set of nav buttons on your protected index page will then point to the other pages in your protected area.

keep all your Protected pages in your owners sub directory......

Your owners index will then point to the other pages in your owners dir.....

ie. your owners index page will have one of these buttons with
and so on for all your nav buttons ON YOUR OWNERS INDEX page.

05-22-2006, 06:41 PM
There is no nb-hollinhurst.com/owners folder. Or at least i can't find it. That's why i keep asking you if nb-hollinhurst.com is the main domain or an addon domain.

05-22-2006, 07:25 PM
Your username/password screen is now coming up ok from:
........ http://owners.nb-hollinhurst.com/

. naval, he is using a sub domain..............

05-22-2006, 07:39 PM
David, i understang that he's using a subdomain, BUT, there is no nb-hollinhurst/owners folder. It there was one, and with an "index" page published, it should also be coming up typing www.nb-hollinhurst.com/owners/index.html (http://www.nb-hollinhurst.com/owners/index.html) . It doesn't. So my guess is that he has the "owners" folder at the same level of his nb-hollinhurst folder (Mickey said he has such a folder in his post #18. So my guess is that nb-hollinhurst is an addon domain, not the main domain, and that's why he has also a "nb-hollinhurst" folder as well as a "owners" folder

05-22-2006, 08:07 PM
You are quite right, there is not an owners folder at
but it would seem that mickey has been trying different things
so the files are not indicative of the true state at this moment.

All his required pages are there and now that his user/password screen
is working, he just needs to republish to owners.nb-hollinhurst.com
to get what he wants......as long as the links from his owners index are
setup properly........

Mickey Finn
05-22-2006, 09:43 PM
Thanks David for your help I think I have got it all working now. Sorry Navel for not coming back to you sooner. Yes nb-hollinhurst is an add on domain, which was making it harder for me to work out. I should of said this earlier but I have not got it quite clear in brain the structure of web design. Getting there slowly though. Once again thanks for your help. M.

05-23-2006, 08:23 PM
Dave, Sir!
Please check your email....