Posted on 2009-07-15
I am planning to phase out my previous url www.mydomain.com/mypage and replace it by myplace.com
I have a rewrite rule in the virtual host configuration file of myplace as below:
RewriteRule ^/(.*) http://www.mydomain.com/mypage [R]
Now, whenever I type myplace.com in the browser, it fetches the web pages from www.mydomain.com/mypage properly. It does its job...
but the problem over here is, it also at the same time changes URL in the address bar of the browser to www.mydomain.com/mypage.
I simply want pages to be fetched from www.mydomain.com/mypage whenever I type mypage.com. I don't want any changes in URL of the browser. How do I avoid it ??