Ok, I have been searching this site for about two hours now and I cannot find a straight answer to the problem that I am having. I have tried a few codes, but none of them seem to work.
Basically, here is my problem in a nut-shell:
I have one hosting account:
www.mainsite.com
I have three other domains that point to subfolders under the main account. For example:
www.secondsite.com is supposed to point to www.mainsite.com/secondsite/index.htm
I also have www.thirdsite.com which is supposed to point to www.mainsite.com/thirdstie/index.htm
and www.fourthsite.com to go to www.mainsite.com/fourthsite/index.htm
What code do I need to use to get this to work. I have tried the test code of:
Options +FollowSymLinks
RewriteEngine On
RewriteRule Google http://www.google.com/? [NC,R,L]
to make sure it is working and when I went to www.mainsite.com/google I was redirected to www.google.com. So I beleive my .htacess file is working.
I guess I should also have started with, I am a complete noob and have no idea what I am doing with htacess files, so please be gentle with me. I need to get these other three sub-sites (domain names) working, but I can't seem to enter the right code. Can anyone help?
Now, this is only the first step in this htacess file mod_rewrite that I want to do. The old way it worked was that when you typed in www.secondsite.com, it would show in the address bars as www.mainsite.com/secondsite/index.htm. Which is fine for now. I have read other codes to be able to change that. I have also read about changing the www.mainsite.com/folder to show up as www.folder.mainsite.com and I think I can do that, but my first problem is just getting the domain names to work.