• Welcome to DNForum.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Wanted: Service Automated subdomain creator

Status
Not open for further replies.

kingeric

New Member
The Originals
Legacy Platinum Member
Joined
Aug 20, 2004
Messages
90
Reaction score
0
I just need my server to read my folders as subdomains Example: I have http://mydomain.com/file I would like my server to display this url as http://file.mydomain.com. I have cpanel and I know how to create subdomains in cpanel but I need to have it done instantly and for multiple folders. I have wildcarded my dns but I know there is something else I have to do with the server. If anyone can explain it to me I would appreciate it.
 
I'm not really the expert, but I believe that you can do this very simply (on an Apache server anyway) using .htaccess and the "mod_rewrite" module. Create a blank .htaccess file, then put something like:
RewriteEngine on
RewriteRule ^http://[.+].YOURDOMAIN.com http://www.YOURDOMAIN.com/$1
My syntax is probably not correct, but that's that basic idea, do a bit of research into mod_rewrite, it is a very useful tool for SEO!
 
Status
Not open for further replies.
Back
Top Bottom