My question concerning htaccess is I have two domains. I have my htaccess set to rewrite the url and serve the page for which domain the visitor requested. The problem I have is that the links for the domains point to the root of the server and the websites are in folders.

For example my browser window will show www.mydomain.com which is what I want and my links on the page when hover over a link on the page returns www.mydomain.com/link.htm which is what I want but if you click the link it returns a 404. What do I need to add to my htaccess to rewrite the links on the page when clicked to serve up the page located in the folder called mydomain?


Thanks!!