jeret Posted March 23, 2011 Report Share Posted March 23, 2011 Hi i have successfully, configured and made my web online. i have setup the virtual host:Now i want to redirect all my non www webaddress to www. How do i do this? i have even edited the .htaccess in my uniserver/www/ with few different config but it's still not working. please help: RewriteEngine OnRewriteCond % ^lourdes.com.my [NC]RewriteRule ^(.*)$ http://www.lourdes.com.my/$1 [L,R=301]------------------------------------------------------------------------------------------------------------------RewriteEngine OnRewriteCond %{HTTP_HOST} !^www\.RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]------------------------------------------------------------------------------------------------------------------##########VIRTUAL HOST SETUP########### WWW.AMPANGPOINT.COM.MY<VirtualHost *>ServerName www.ampangpoint.com.myDocumentRoot C:/UniServer/www/asb</VirtualHost> ##########VIRTUAL HOST SETUP########### WWW.AMPANGSUPERBOWL.COM<VirtualHost *>ServerName www.ampangsuperbowl.comDocumentRoot C:/UniServer/www/asb</VirtualHost> ##########VIRTUAL HOST SETUP########### WWW.REDALERTCARD.COM.MY<VirtualHost *>ServerName www.redalertcard.com.myDocumentRoot C:/UniServer/www/redalert</VirtualHost> Quote Jeret Christopher WEB DESIGNER Link to comment Share on other sites More sharing options...
DrLeandro Posted January 7, 2012 Report Share Posted January 7, 2012 Try edit directly your pages to link "www.webaddress.com". Set by .htaccess will overload the server,causing ddos is if a lot of accesses are made at the same time. As my grandfather said: "You can avoid service, but can not avoid the bugs without service" Quote Link to comment 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.