Forum Moderators: phranque
Please post your attempt at coding this, so we can discuss it. It can save a lot of time, and help you get a better answer.
Or, for more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim
RewriteRule ^index\.html$ [test.com...]
It works quite fine. But the problem is that all links and images in index.php are relative to that directory, so when I successfully see [test.com...] it is not loading images and links properly. Any idea on how to overcome this issue?
Thanks,
So, you will need to either rewrite all of the included page elements' URL-paths, use server-relative URLs, or use absolute URLs -- i.e., use <img src="/path-to-image-from-web-root"> or <img src="http://www.example.com/path-to-image">.
Jim