PDA

View Full Version : CNAME link to sub folders?


doane
05-20-2008, 04:08 PM
Hi, I hope some of you tech geniuses can help me as I'm not one at all..:(

My website is rhoag.com I set up a CNAME of lochrie.rhoag.com that links to rhoag.com because there seems to be no way to link to sub folders of rhoag.com using the CNAME itself. I was told by a "tech" at Earthlink that I can use a script to send a visitor to the sub folder.

So if a visitor types in lochrie.rhoag.com the script will send them to a index.htm file in the lochrie folder which is also in the main webdocs folder that the main, entry index file and all the other folders are in.

This was the script that he emailed me to use:
<script> window.location='http://www.yournewpage.com'; </script>

but it doesn't have any explanation of where to put it or how to use it. I tried putting it in my main, entry index.html file, just after the other scripts and before the head but I couldn't get it to work. I tried this:
<SCRIPT>
./lochrie/index.htm='http://lochrie.rhoag.com';
</SCRIPT>

and: <SCRIPT>
./lochrie/='http://lochrie.rhoag.com';
</SCRIPT>

and several other variants of it and none do anything.. when I type in lochrie.rhoag.com I am always taken to the main entry of the site.


I would appreciate any help you can give me on how to do this.