gdhanasekar Posted June 18, 2008 Share Posted June 18, 2008 Hi all, If some type the url like http://site.com, I want to redirect it like http://www.site.com.I think it will be done using htaccess or php.ini . if someone knows this issue..please share it. Regards!!! php web developer http://www.php-web-developer.net/ Quote Link to comment https://forums.phpfreaks.com/topic/110722-solved-help-needed-for-httpsitecom-to-httpwwwsitecom/ Share on other sites More sharing options...
Xurion Posted June 18, 2008 Share Posted June 18, 2008 I think this should be done in the IIS level. Quote Link to comment https://forums.phpfreaks.com/topic/110722-solved-help-needed-for-httpsitecom-to-httpwwwsitecom/#findComment-568054 Share on other sites More sharing options...
beboo002 Posted June 18, 2008 Share Posted June 18, 2008 if your web hosting in linux then u use .htaccess file for url rewrite or redirection Ex. Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^(test\.com)$ [NC] RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L] Quote Link to comment https://forums.phpfreaks.com/topic/110722-solved-help-needed-for-httpsitecom-to-httpwwwsitecom/#findComment-568071 Share on other sites More sharing options...
gdhanasekar Posted June 19, 2008 Author Share Posted June 19, 2008 thanks beboo002 worked fine!!!! Quote Link to comment https://forums.phpfreaks.com/topic/110722-solved-help-needed-for-httpsitecom-to-httpwwwsitecom/#findComment-569038 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.