Warren
Aug 3 2009, 08:00 AM
Hello,
I am hoping someone might be able to help me figure out a small glitch I am having. I'm not sure if this is possible but i would like to hide the ".html" at the end of my address in the address bar. My fiance and I are trying to post an online wedding registry, she has had cards printed as "xxxxxx.com/registry" when the address of the page i put together is actually "xxxxx.com/registry.html" I am hoping to avoid having the cards reprinted.
If i change the html document so the file extension is lost ( from registry.html to registry), all i get is code when I open the page. If i type in the address but leave off the extension i get an error message saying the file can not be found.
I feel like i have been to websites where i am directed to a different page but do not see ".html" at the end of the address in the address bar. Is this possible or do i need to reprint my registry cards?
pandy
Aug 3 2009, 08:29 AM
How are you hosted? Is serverside scripting available to you? Can you use .htaccess?
Otherwise, something that might work with a little luck is to create a directory called "registry" and rename registry.html to index.html. The correct way to link to a directory is
http://xxx/regístry/, with an end slash. But nowadays servers often seem to be configured to amend that. This server is. Note how the slash is added to the below URL.
http://htmlhelp.com/toolsIt's ugly though.
Warren
Aug 3 2009, 02:46 PM
Thanks for the quick reply Pandy.
I'm kind of new to this- Im not sure how i am hosted or if i can use .htaccess. How would i be able to tell? My web hosting is through 000Domains, and i have a standard LINUX package if that means anything.
I created a new directory named registry but it doesnt seem to work. Im not positive that i created the directory in the correct place though. I FTP through Filezilla, when i connect i have 3 folders to choose from (log, tmp and webspace), I open webpsace and have 10 more files to choose from. All my current website files are in a folder called httpdocs, this is where i placed the new directory "registry." In this registry directory i placed the renamed file "index.html"
Now when i type xxx.com/registry my browser automatically adds the slash after the 'Y' when i hit return/enter but i am still getting an error message. Is there something else i am not doing correctly?
pandy
Aug 3 2009, 03:43 PM
At least you know the slash thing works.
httpdocs is common name for the webroot (where you put stuff available from the web). But it sounds odd that it's inside a directory called website. Those other files directly in website, what are those? Can you reach them from the web?
Warren
Aug 3 2009, 03:57 PM
the other folders are:
certs
cgi-bin
conf
error_docs
httpdocs
httpsdocs
pd
webapps
webstat
webstatssl
pandy
Aug 3 2009, 04:17 PM
OK. What if you try to go to
http://xxx.com/registry/index.html?
Are you sure you named the file index.html? Not index.htm, Index.html or anything else?
Warren
Aug 3 2009, 07:30 PM
That was it! I had renamed it Index.html instead of index.html.
Thank you so much for the help! I'm psyched i wont have to reprint those cards.
pandy
Aug 3 2009, 08:23 PM
As said, it's a little ugly, but if it works it works, eh?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.