Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can !
Moderator: General Moderators
dhaval_83
Forum Newbie
Posts: 16 Joined: Tue Feb 06, 2007 12:28 am
Post
by dhaval_83 » Tue Feb 06, 2007 2:08 am
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.
amaudy
Forum Newbie
Posts: 3 Joined: Mon Jan 15, 2007 10:40 pm
Post
by amaudy » Tue Feb 06, 2007 2:41 am
Ollie Saunders
DevNet Master
Posts: 3179 Joined: Tue May 24, 2005 6:01 pm
Location: UK
Post
by Ollie Saunders » Tue Feb 06, 2007 4:01 am
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