I had http://example.com/intranet/ which I had to turn into http://intranet.example.com
Unfortunately, everything was written with the absolute path so its like <a href="/intranet/timeclock">time clock</a>
So you see my dilemma. everything wants to go to like /intranet/timeclock
I tried some rewrite rules like
RewriteRule ^/intranet / [R,L]
RewriteRule ^/intranet/(*.) /$1 [R,L]
And others. No luck. I have looked at the other posts on server fault and tried some of them with no luck either. Andy advice?
http://intranet.example.com/intohttp://example.com/intranet/... or? – LazyOne Jul 13 '11 at 21:25<VirtualHost>, for example) it should work fine. If you are going to place it into .htaccess file, then you should remove leading slash/. The same goes for your own rules -- in .htaccess there is no leading slash when pattern is applied to URL in RewriteRule. – LazyOne Jul 14 '11 at 12:42