Kryllster Posted February 9, 2009 Share Posted February 9, 2009 I have spent most of the night trying to figure out how to do what should be a simple rewrite rule. essentially I want to change the document root ie http://somewhere.homelinux.net to http://somewhere.homelinux.net/~user/ but display it as the first. Im not finding anything about it I dont want to change the doc root just the url of the user directory to display as doc root RewriteEngine on RedirectMatch ^/$ /home/user/public_html I tried that but no use Thanks Kryll Link to comment https://forums.phpfreaks.com/topic/144474-over-6-hours/ Share on other sites More sharing options...
corbin Posted February 9, 2009 Share Posted February 9, 2009 RewriteRule (.*) /~user/$1 Should work. Link to comment https://forums.phpfreaks.com/topic/144474-over-6-hours/#findComment-758533 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.