kbat Posted January 2, 2009 Posted January 2, 2009 Hello, I would like to use separate folders for the main domain and subdomain "www". Is there a way to do it? For instance, my domain name is lizardie.com, and the main domain folder is /home/kbat/public_html, and by default it is the same for www.lizardie.com. How do I change it to /home/kbat/public_html/www? What I did up to now is created a redirection like this: lizardie.com / http://lizardie.com/www permanent match_www However, this also changes the address in the browser from www.lizardie.com to lizardie.com/www what I do not like. Thank you, Konstantin
Byron Posted January 2, 2009 Posted January 2, 2009 It's all the same domain. www.lizardie.com is just a sub-domain of lizardie.com. If you want to redirct all requests to www than add this to your .htaccess file. RewriteEngine on RewriteCond %{HTTP_HOST} ^lizardie\.com [NC] RewriteRule (.*) http://www.lizardie.com/$1 [R=301,L] edit: To answer your original question: no you can't have seperate folders for public_html and www. What you create in your public_html will also be in your www and vice versa.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now