Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

uniform server 5.6.7-nano ?redirect?

Featured Replies

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

Have you tried using ServerAlias for example:

 

##########VIRTUAL HOST SETUP##########

# WWW.AMPANGSUPERBOWL.COM

<VirtualHost *>

ServerName www.ampangsuperbowl.com

ServerAlias ampangsuperbowl.com *.ampangsuperbowl.com

DocumentRoot C:/UniServer/www/asb

</VirtualHost>

  • Author

Have you tried using ServerAlias for example:

 

##########VIRTUAL HOST SETUP##########

# WWW.AMPANGSUPERBOWL.COM

<VirtualHost *>

ServerName www.ampangsuperbowl.com

ServerAlias ampangsuperbowl.com *.ampangsuperbowl.com

DocumentRoot C:/UniServer/www/asb

</VirtualHost>

 

 

hi Coral, it's not working either, i tried this way instead and it's working :

 

<VirtualHost *>

DocumentRoot C:/uniserver/www/asb

ServerName www.ampangsuperbowl.com

</VirtualHost>

 

<VirtualHost *>

DocumentRoot C:/uniserver/www/asb

ServerAlias ampangsuperbowl.com

Redirect permanent / http://www.ampangsuperbowl.com

</VirtualHost>

 

but above don't seem to with extensions like "com.my" ex: www.lourdes.com.my

Jeret Christopher WEB DESIGNER

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.