Site Panel Help User Panel Help Panel Demo's Search Help

Categories

· Show all categories

New Customer FAQs
E-Mail
FTP - File Transfers
Domains
SSH and Telnet
Scripting Languages
Password Protection
MySQL
Stats
Power Tools

· FAQ Home

· EchoEcho+ Support

Domains: Point extra domain to folder
You can point an additional domain to a sub folder.

Assuming your extra domain is "example.com" do this:

1: Add a folder "example.com" in your main web folder.

2: Create a text file named ".htaccess" and upload it to your main web folder.

The .htaccess file should look like this:
-------------------------------------
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/example.com/ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)*example\.com$ [NC]
RewriteRule ^(.*) example.com/$1 [L]
-------------------------------------
Note: Replace "example.com" with the real domain.

If it doesn't work at a first attempt, you can look for error messages in "/var/log/httpd/error_log"

Last update: 12.07.2009, 21:10
Author: EchoEcho Support

printer-friendly version Send to a friend
Show this as PDF file export as XML-File

Average rating: 4.33 from 5 (3 Votes )

Please rate this entry:
completely
useless

1

2

3

4

5
most
valuable
You cannot comment on this entry | Content Overview: Domains
Copyright © EchoEchoPlus Hosting