Yes, both domains point to the same index.htm file in the document root.
I see I had forgotten to mention that there is an index.htm file for domain1.com and index.php for domain2.com. I'll see if I can work this out with what you have provided.
I'll be back to let you know how it goes, thanks again
On edit:
I was getting internal server errors with this line of code:
- Code: Select all
RewriteCond %{ENV:REDIRECT_STATUS}
but fixed it with:
- Code: Select all
RewriteCond %{ENV:REDIRECT_STATUS} ^$
It seems I should have been a little more clear with what I am trying to do.
Perhaps an example of the site structure would help.
Where folder "Web Site" is the document root for domain1.com (entering the domain2.com URL will currently take users to the domain1.com index.htm page).
C:\web site\index.htm
and domain2.com needs to point to something like this:
C:\Web Site\folder1\folder2\folder3\index.php
I realize it's pretty screwy the way I've done this, but to change the structure from what it is now, would be a major undertaking requiring a lot of CGI script editing and re installation of the forum code that resides at the index.php location of domain2.com
I suppose all that really needs to happen here is for users to be redirected to the proper index.php file at the proper location of the site when using the domain2.com URL and everything else already is functional.
The code you have provided thus far however does in fact work after fixing that one line, but doesn't need to really do anything with the domain1.com URL and just really needs to get users to the correct location and bring up the index.php file when addressing the domain2.com URL
I'm so sorry for all the confusion