Forum Moderators: phranque
i have one directory with the website in it (all html files, flash files, etc...)
ok lets say the addy is www.website.com ... the guy wants people to type in www.website.com/ca and bring up the other pages that i am working on, now when i upload the "ca.html" file to the ftp server and try to goto:
www.website.com/ca it says page cannot be displayed, but when i type in
www.website.com/ca.html it works great
it does the same thing with an htm ext by the way... i want people to be able to just type in www.website.com/ca and the page comes up, i dont want them to have to type in htm or html... any help on this topic?
Thanks in advance!
mod_rewrite is probably a bit overkill for this. The best way of doing this is to simply create a directory called "ca" and place an index.html within it. That would mean that example.com/ca would map to example.com/ca/ - and you could then have further files in there, such as example.com/ca/file.html.
The important thing to look out for is making sure the path to your images and other files is correct, as those won't be in the same directory any more.
Create a subdirectory named "ca" and then name the file "index.html" and place in the directory. That is often done when someone wants people to access a particular page (perhaps from a print ad).