Help - Search - Members - Calendar
Full Version: Re-direction
HTMLHelp Forums > Web Authoring > General Web Design
maurellis
Hi everybody,
My first post.
How do I set up my web site so that I can direct people to the following:
http://www.mysite.com/books
I.E. I want to set up a website which has several different areas to shop from. For example /books, /toys/, /music etc, but I don't want to put the .html after each url. I want them to go directly into the area of their choice without having to first go to the main site and click on another link.
I also want each product to have its own shopping cart within its own folder.
Does this make sense.
maurellis
Corey Bryant
You could have books as a folder - so when users go to http://www.example.com/books they are going to something like http://www.example.com/books/index.html.

But if you are going to be using a shopping cart (server side language), you might be best to check to see what else is available (i.e. mod-rewrite). You can then use this to basically re-write the URL from something like http://www.example.com/products.aspx&1234 to http://www.example.com/books instead
maurellis
QUOTE(Corey Bryant @ Jan 1 2008, 09:06 AM) *

You could have books as a folder - so when users go to http://www.example.com/books they are going to something like http://www.example.com/books/index.html.

But if you are going to be using a shopping cart (server side language), you might be best to check to see what else is available (i.e. mod-rewrite). You can then use this to basically re-write the URL from something like http://www.example.com/products.aspx&1234 to http://www.example.com/books instead


Thanks but I seem to be doing something wrong.
I have a folder called called 'books' but when i put the url www.mysite.com/books all it produces is the actual folder, then one has to click on index.html before bringing up the page desired. How do I make it go directly to the index page for 'books'?
maurellis
pandy
The server should have a list of files that it serves as the dafault page and index.html should be among them. Do you run the server or are you on a shared account? If you are on Apache you can fix this for yourself with .htaccess even if you are on shared hosting. See http://httpd.apache.org/docs/2.2/mod/mod_d...#directoryindex . On IIS I don't know.

That said, http://www.example.com/books isn't necessarily the same as http://www.example.com/books/ even if servers seem to be more helpful with that nowadays.
maurellis
QUOTE(pandy @ Jan 2 2008, 06:55 AM) *

The server should have a list of files that it serves as the dafault page and index.html should be among them. Do you run the server or are you on a shared account? If you are on Apache you can fix this for yourself with .htaccess even if you are on shared hosting. See http://httpd.apache.org/docs/2.2/mod/mod_d...#directoryindex . On IIS I don't know.

That said, http://www.example.com/books isn't necessarily the same as http://www.example.com/books/ even if servers seem to be more helpful with that nowadays.


I am on a shared account. I obviously cannot have two index.html pages in the same area, but some nice person emailed me with exactly what I needed to know. They said: Simply make a new folder, within the file manager area, and call it books. Then open it up and upload a file into it and call it index.html. This works perfect. When I use url: www.mysite.com/books it goes straight to that area.
Thanks for all your help
maurellis
pandy
But that's how you said you had it to start with. Anyway, good it worked out.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.