# -+- number -+- category -+- title -+- email -+- name -+- homepage -+- clickOnName -+- language -+- image -+- browser-used -+- security-cookie =0 -+- 2004-01-29:1 -+- UNIX Basics -+- Apache Redirect -+- edward@cybersoul.org -+- Edward Choi -+- http://www.cybersoul.org -+- nolink -+- English -+- -+- Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 -+- 4976 Why redirect?
1) You're working for a web-hosting company and your client has all the top domains and wants to point his .net/.org domain to .com. You need to redirect .net/.org to his .com page.

2) You're working for a web-hosting company which provides "DNS Parking" with redirection service. Client wants to get a domain and redirect to his existing geocities homepage, you need to redirect to his geocities homepage.

Hardway:
You as an system administrator create his account as usual (with the hard way or by using some script). You created 3 accounts:
Redirect .net/org to .com with Javascript/PHP on the index page.

Easyway:
In your httpd.conf file or vhost.conf if you use Include, add in the Redirect directive:


<VirtualHost *>
        ServerAdmin user@example.org
        DocumentRoot /usr/vhost/example.org/httpdocs/
        RedirectPermanent / "http://www.example.com"
        ServerName www.example.org
        ServerAlias www.example.org example.org
</VirtualHost>


(You need mod_alias module loaded before you can use the Redirect directive)