Jump to content


Photo

uniform server 5.6.7-nano ?redirect?


  • Please log in to reply
No replies to this topic

#1 jeret

jeret

    Junior Member

  • Member
  • Pip
  • 49 posts
  • Main OS: Windows 2000

Posted 23 March 2011 - 07:36 AM

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 On
RewriteCond % ^lourdes.com.my [NC]
RewriteRule ^(.*)$ http://www.lourdes.com.my/$1 [L,R=301]
------------------------------------------------------------------------------------------------------------------
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
------------------------------------------------------------------------------------------------------------------
##########VIRTUAL HOST SETUP##########
# WWW.AMPANGPOINT.COM.MY
<VirtualHost *>
ServerName www.ampangpoint.com.my
DocumentRoot C:/UniServer/www/asb
</VirtualHost>

##########VIRTUAL HOST SETUP##########
# WWW.AMPANGSUPERBOWL.COM
<VirtualHost *>
ServerName www.ampangsuperbowl.com
DocumentRoot C:/UniServer/www/asb
</VirtualHost>

##########VIRTUAL HOST SETUP##########
# WWW.REDALERTCARD.COM.MY
<VirtualHost *>
ServerName www.redalertcard.com.my
DocumentRoot C:/UniServer/www/redalert
</VirtualHost>
Jeret Christopher WEB DESIGNER




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users