Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Wanted: Service Automated subdomain creator

Status
Not open for further replies.

kingeric

Level 3
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.
 
Dynadot - Expired Domain Auctions

Mr.Domains

DNF Addict
Legacy Exclusive Member
Joined
Sep 29, 2004
Messages
1,417
Reaction score
29
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.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 2) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

Upcoming events

New Threads

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom