(This code is a place-holder until further, detailed, information can be written. This example provided by
-Sx-)
You are hosting with a provider that allows you to create sub domains that point to additional domains; for example -
ccsh.insecurity.org => ccsh.us
Where ccsh. is a sub domain of insecurity.org BUT you really only want people to be able to reach it via ccsh.us (not ccsh.insecurity.org or www.ccsh.insecurity.org)
You *could* use mod_rewrite to do URL manipulation; but Redirect and RedirectMatch would be a better choice:
RedirectMatch permanent ^/ccsh$ http://ccsh.us/ RedirectMatch ^/ccsh/(.*) http://ccsh.us/$1
This is placed inside the .htaccess file in your primary server DocumentRoot directory. Then test it, simple =)
Return to previous menu: AccessControl