View Single Post
Old 06-09-2002, 09:26 PM  
Midnight
Confirmed User
 
Midnight's Avatar
 
Join Date: Jun 2001
Location: ONLINE
Posts: 330
Here is a .htaccess sample Redirect based on a specific Machine Name. I have not tried to mask the host, like *.*.jp or *.jp , but maybe this might get you going in the right direction.

This sample will redirect requests for the machine name machine.domain-name.net to the directory machine on the site domain-name.net .

Add the following to the .htaccess file:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Rewrite Rule for machine.domainname.net
RewriteCond %{HTTP_HOST} machine.domainname.net$
RewriteCond %{REQUEST_URI} !machine/
RewriteRule ^(.*)$ machine/$1
__________________
Codifico, quindi sono
icq 118-997-859
Midnight is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote