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
|
You cannot comment on this entry | Content Overview: Domains
|
|
|