chronister Posted December 5, 2007 Share Posted December 5, 2007 Got a hopefully simple question here for anyone. I have never used mod_rewrites, and was wondering how I would get http://sub.domain.net/admin to direct to http://sub.domain.net/eStore/admin Can 1 of you kind souls help me out? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/80230-mod_rewrite/ Share on other sites More sharing options...
runnerjp Posted December 5, 2007 Share Posted December 5, 2007 why no just store ur htaccess file in eStore? then you would have http://sub.domain.net/eStore/admin Quote Link to comment https://forums.phpfreaks.com/topic/80230-mod_rewrite/#findComment-407060 Share on other sites More sharing options...
runnerjp Posted December 5, 2007 Share Posted December 5, 2007 or RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^/?$ http://www.mydomain.com/estore/ [R=301,L] on first page and store RewriteEngine on RewriteBase / RewriteRule ^([^/.]+)/?$ /pagename.php?username=$1 under eStore page Quote Link to comment https://forums.phpfreaks.com/topic/80230-mod_rewrite/#findComment-407171 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.