Page 1 of 1

.htaccess coding, really big one...

Posted: Tue Feb 06, 2007 2:08 am
by dhaval_83
hi all,

this is my first post on devnetworks. i have one big problem with .htaccess . i want a code in .htaccess which gives me the facility of this:

when i write http://www.domain.com/sub-domain/index.htm i want output like this:

[b]http://sub-domain.domain.com/index.htm[/b]

this is the result which i want to show in address bar and in back end the page index.htm must be executed which is in that sub-domain.

Please let me know the solution guys... i am stuck in this problem. :(

Thanks
Dhaval Trivedi.

Posted: Tue Feb 06, 2007 2:41 am
by amaudy
Try http://cooletips.de/htaccess/ may be help you.

Audy.

Posted: Tue Feb 06, 2007 4:01 am
by Ollie Saunders
You can't do that with mod_rewrite or in fact anything you could possibly put in an .htaccess I'm pretty sure. If you are on a shared host there should be a specific facility for you to add sub-domains otherwise you've got to play with VirtualHosts in httpd.conf