News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - doctoreast

#46

   Still waiting, 24hrs, for hosting ip
to propogate.  I googled this subject,
and came up with some handy links.

http://corz.org/serv/tricks/htaccess2.php?page=all

#47
Update: admin has added *.doctoreast.com
to my account, and so it looks like this is now
going to work. I've changed hosting info on
my 2nd domain name, and am waiting for it to
propogate.
#48
Bonehead,

  After some thought, I think that yours is the correct
process; and that the entire rewrite/htaccess idea
appears to be an attempt by admin to eliminate the 
work of adding vhosts; which is understandable.

  One of my hosting companies has me on one of those
plesk servers with some music download site, who keeps
writing me about content, wanting me to stay away from
the ram (doesn't want me to use any media files).  Well,
I don't have any at all.  This nonsense just has me weary,
and I may just jump ship, which is why I am looking into this.

  Looks like freepgs may not want to handle this your way,
and so I may have to do it their way.  I've emailed admin, but
they have not yet replied.

Thanks,
East
#49
  Newbie here, a bit confused by your instructions on how to
use multiple domain names with subdirectories using .htaccess
The original thread is HERE.

  Why did member "x" called these instructions cheap and amateurish?

  These instructions tell me that I must ask you to add *.mydomain.com to
my account, but I got an error, unacceptable characters, using the *,
when adding it using the Setup Domains page.

   Using two domain names, can someone please clarify how to modify
these scripts, if the two domain names are actually called:
domain1.com and domain2.com

If you need to apply this change to only ONE domain,
put this code in /.htaccess (root):


RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?EXAMPLE.NET$
RewriteRule ^(DIRECTORY\/)?(.*)$ DIRECTORY/$2 [L]



Then, in DIRECTORY/.htaccess (subdomain folder), write
the following code:


RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.)?EXAMPLE.NET$
RewriteRule ^(DIRECTORY/)?(.*)$ http://www.EXAMPLE.NET/$2 [L,R=301]



Thanks in Advance,
East