anthylon Posted February 28, 2009 Share Posted February 28, 2009 Hello, Can anyone help me with this? I need to redirect from http://example.com/folder to http://folder.example.com/ ??? Thank you. :-\ Quote Link to comment https://forums.phpfreaks.com/topic/147331-solved-redirect-examplecomfolder-to-folderexamplecom/ Share on other sites More sharing options...
corbin Posted February 28, 2009 Share Posted February 28, 2009 mod_rewrite is probably the easiest way: RewriteRule ^([^/]+)/?$ http://$1.example.com/ Quote Link to comment https://forums.phpfreaks.com/topic/147331-solved-redirect-examplecomfolder-to-folderexamplecom/#findComment-773342 Share on other sites More sharing options...
anthylon Posted March 1, 2009 Author Share Posted March 1, 2009 Thank you:) It works! Quote Link to comment https://forums.phpfreaks.com/topic/147331-solved-redirect-examplecomfolder-to-folderexamplecom/#findComment-773728 Share on other sites More sharing options...
corbin Posted March 1, 2009 Share Posted March 1, 2009 ;p No problem. Quote Link to comment https://forums.phpfreaks.com/topic/147331-solved-redirect-examplecomfolder-to-folderexamplecom/#findComment-773798 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.