I recently signed up for a new host and they have a structure I'm not familiar with and am just starting to work with mod-rewrites... at any rate i have created this type of structure for easy folder access:
public_html
-- /maindomain.net/ (sub-folder named after the main domain)
---- main domain's files and folders
-- /addons/
---- /addondomain1.com/
-------- above add-on domain's files and folders
---- /addondomain2.com/
-------- above add-on domain's files and folders
-- /subdomains/
---- /sub1.maindomain.net/
-------- above subdomain's files and folders
---- /sub2.maindomain.net/
-------- above subdomain's files and folders
At any rate, I am a beginner at this and here's what I want to do:
[1] Have /maindomain.net/ sub-folder show up as http://www.maindomain.net/ NOT http://www.maindomain.net/maindomain.net
[2] In cPanel I have made the subdomains document roots as: /public_html/subdomains/sub1.maindomain.net
Do I need to add an .htaccess mod-rewrite at all if I've already isolated that as the root? If I do need mod-rewrites, what should it be?
Thanks so much for your response. I appreciate it!