divinequran Posted December 4, 2009 Share Posted December 4, 2009 Hi, I want all the pages from w3calculator.com/info/....(*) have to be redirected to the sub domain http://info.w3calculator.com I have tried with the following redirection code it doesnot work. please help.. RewriteCond %{HTTP_HOST} ^w3calculator.com/info/[a-z]$ RewriteRule ^w3calculator.com/info/[a-z]$ http://info.w3calculator.com/ [R] RewriteCond %{HTTP_HOST} ^w3calculator.com/info/(.*)$ RewriteRule ^w3calculator.com/info/(.*)$ http://info.w3calculator.com/ [R] Quote Link to comment https://forums.phpfreaks.com/topic/183979-redirect-subdomain/ Share on other sites More sharing options...
cags Posted December 4, 2009 Share Posted December 4, 2009 Try removing the domain from your RewriteRule in your second example... RewriteRule ^info/(.*)$ http://info.w3calculator.com/ [R] Quote Link to comment https://forums.phpfreaks.com/topic/183979-redirect-subdomain/#findComment-971227 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.