[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] browse virtual site via IP and email storage?



On Thu, 22 Mar 2001, Fred McKinnon wrote:

> 
> 1)  It there ANY URL or way for a user to browse their
> site via the web *BEFORE* their domain is activated
> and pointed in DNS?  I know if they are the only site
> on an IP, they can just go to http://IPADDRESS, but
> for a virtual site (named site) that is sharing an IP,
> but the domain isn't pointing yet . . anything they
> can do?

A while back someone posted this idea which works well for me:

1. Create a directory named "preview" somewhere like
/home/sites/home/web/preview
2. Put an .htaccess file in it containing the following lines:
RewriteEngine on
RewriteBase /Preview
RewriteRule ^www\.([^/]+)$  /Preview/www.$1/ [L,R]
RewriteRule ^www\.([^/]+)(/(.*))? http://www.$1/$3 [P]

You can now preview sites using the url below:
http://www.yourservername.com/preview/www.yourcustomersdomain.com/


---------
Ken Marcus
ken@xxxxxxxxxxxxxxxx
http://precisionweb.net
Precision Web Hosting 
2210 East Vista Way Suite 5  
Vista, California 92084