Click to See Complete Forum and Search --> : Setting up a sub directory


tadpole
08-05-2010, 10:09 AM
Hallo

I have a main website www.mysite.com I want to get traffic to it by submitting galleries. To keep track of them I want to give each gallery a different name.

I have added a sub directory to my main site called galleries, and have an index file in there. So if someone clicks on www.mysite.com/galleries.index.htm they will go directly to the /galleries.index.htm page and not the index page of my main site. This is up and working.

How do I do it so that I can do more galleries ie

www.mysite.com/galleries/toys.index.htm

www.mysite.com/galleries/toys/toyland.index.htm

and traffic will land directly on an individual index page?

I have tried both the above examples, making folders both on my hosting account and in my htm, when I tested them I landed on the index page of my main site. I have my hosting at godaddy.

Thanks for any help

tracknut
08-05-2010, 10:17 AM
Everything you list is perfectly possible, though I'm wondering whether you're mixing up slashes and dots in your examples above.

www.mysite.com/galleries.index.htm does not have a subdirectory, it is a file called "galleries.index.htm" in your main directory. Can be done just fine.
www.mysite.com/galleries/index.htm is a file called "index.htm" in a subdirectory called "galleries"

Both those will work just fine. Oh wait, is your hosting on Linux or on Windows? I'm not sure if a Windows host will allow the file with two dots in it. Linux certainly will.

Dave

tadpole
08-05-2010, 10:31 AM
Thanks for the reply, yes I did get my slashes and dots mixed up!

I have www.mysite.com/galleries/index.htm set up and it is working. I have linux hosting.

Now I want to make another gallery and call it www.mysite.com/galleries/toys/index.htm

Do I make the folder for "toys" inside the galleries folder in my htm, or do I add a file called "toys" on my hosting plan. If on the hosting plan, should it be inside the "galleries" sub directory, or just add it into my hosting directory?

I have tried both ways and just ended up on the index.htm of my main site.

tracknut
08-05-2010, 10:41 AM
Now I want to make another gallery and call it www.mysite.com/galleries/toys/index.htm

Do I make the folder for "toys" inside the galleries folder in my htm, or do I add a file called "toys" on my hosting plan. If on the hosting plan, should it be inside the "galleries" sub directory, or just add it into my hosting directory?

I have tried both ways and just ended up on the index.htm of my main site.

You want to make a directory called "toys" inside your "galleries" directory that you made earlier, both on the host (at GoDaddy) and in your local file system. Inside that "toys" directory you want to put a file called "index.htm". It should be similar to whatever you did (sorry, I have no idea what tools and process you use) to make the "galleries" directory.

Dave

tadpole
08-05-2010, 12:17 PM
Thanks so much, I have been messing around for 4 days trying to get it to work!

Much appreciated