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.

Subdomain redirect

Featured Replies

Hi all

 

I want to redirect an IP range to a subdomain.

 

Idea:

if someone goes to www.xyz.com they should be forwarded to intern.xyz.com

 

 

The .htaccess code:

 

RewriteEngine on
RewriteCond %{REMOTE_ADDR} 192.168.1
RewriteRule ^(.*)$ http://intern.xyz.com/ [R,L]

 

This doesn't work.... i don't know why. :)

When this is enabled, the whole site doesn't work anymore.

 

the .htaccess is in the main www folder. The folder structure is the following:

 

-C:/Uniserver/www

-/intern/ (this is DocumenRoot in the vhost file for subdomain intern.xyz.com)

 

EDIT:

Like everytime after posting; problem solved. All domains and subdomains has to be in separate folders, and NOT interleaved.

 

like this:

C:/Uniserver/www/

-external (www.xyz.com)

-intern (intern.xyz.com)

-something (something.xyz.com)

Yep.

That's what the new Coral vhosts setup does for you, to some extent. You still need to be sure to specify the separate folders properly.

 

Regards,

BobS

  • Author

Another question:

 

If i delete a vhost in the coral admin-panel, the real folder is also deleted :) :huh:

Is this true, or it's only a bad phase of the moon ;)

Another question:

 

If i delete a vhost in the coral admin-panel, the real folder is also deleted :) :huh:

Is this true, or it's only a bad phase of the moon ;)

Read the prompt. It doesn't delete it unless you tell it to do so :)

<p class="bbc_center"><span style="font-size:12px;"><strong>Yoni</strong></span></p>

Yoni's right. Be sure to read the prompt. It absolutely removes the directory if you tell it to do so! Sort of like "del *.*"

 

Regards,

BobS

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.