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 largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!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:
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!RewriteEngine on
RewriteRule ^http://[.+].YOURDOMAIN.com http://www.YOURDOMAIN.com/$1
★ Neil Hillman - Web Developer, Pixel Pusher...
Bookmarks