Domain parking vs htaccess
I have several domain names and variations that I would like to point to a single website. Parking only seems to work with my host for a single domain but will call my host to find out for sure.
Cant I do the same thing with htaccess file?
Example:
abc123.com
abc123.net
abc123.org
def456.com
def456.net
def456.org
All should point to the abc123.com.
When I use the htaccess file I dtill get the error on each domain "No template file specified..." error.
thanks
Re: Domain parking vs htaccess
Re: Domain parking vs htaccess
Hmm, I think I may be just really tired but it sounds like kinda what I need.
I dont want to redirect, definately know that and want to alias or rewrite a domain name so they all point to the same directory/site.
Additional problem Im trying to work into this is that my work has a websense filter which currently is blocking a domain that I want to be my primary domain for hte site. I think its blocked as its reported as "damaging content" becuase no template file is specified.
Ive tried mod_rewrite but I think maybe I dont have it written correctly. I cant acccess my htaccess file at work so tonight I can post up an example.
Thanks
Re: Domain parking vs htaccess
This is what Im working with.
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^xxx\.xxx\.xxx\.x
RewriteRule .* http://abc123.com [R=301,L]
Where the ip address is mine.
Re: Domain parking vs htaccess
Your hosting provider should normally have docs on how to achieve this with their particular setup. I would guess you want multiple bindings for the one website, so all your incoming requests for each domain get handled by the one site in Apache. I would doubt this is possible with .htaccess, so you would normally use the hosting provider web console to set this up. I would contact the hosting provider directly and they should be able to advise on how to get it done.
Re: Domain parking vs htaccess
Hmm I think I read something about redirecting a domain to another web root directory. Perhaps this will work instead.
Map two domains to a single www directory?