Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Sub Domain Rewriting Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Kedard
Newbie
Newbie


Joined: 08 October 2008
Online Status: Offline
Posts: 2
Posted: 08 October 2008 at 1:46am | IP Logged Quote Kedard

i want to do the following
im new to this i dont know if its possible or not

i have a site www.mydomain.com
and a subdomain forums.mydomain.com

i want the url www.mydomain.com/forums/
to be servred from forums.mydomain.com
but the url in browser should look www.mydomain.com/forums/

i tried to rewrite www.mydomian.com/forums to
forums.mydomain.com it works fine
but i the url in broewser is forums.mydomain.com
i want it to be www.mydomain.com/forums

thanks for ur replies...


Edited by Kedard - 08 October 2008 at 1:52am
Back to Top View Kedard's Profile Search for other posts by Kedard
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 673
Posted: 08 October 2008 at 3:05am | IP Logged Quote Vyacheslav

Hi,
Please try these rules:
Code:
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$
RewriteRule ^(/forums.*)$ http://forums.mydomain.com$1 [NC,L]


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
Kedard
Newbie
Newbie


Joined: 08 October 2008
Online Status: Offline
Posts: 2
Posted: 08 October 2008 at 7:32am | IP Logged Quote Kedard

thanks for ur reply
the rule given by u is not workin

it takes me to www.forums.mydomain.com/forums

i want the url to look like
forums.mydomain.com/forums

and the request should be processed by
forums.mydomain.com
Back to Top View Kedard's Profile Search for other posts by Kedard
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 09 October 2008 at 5:07am | IP Logged Quote Anton

Please try the following config:

RewriteCond %{HTTP_HOST} ^forums\.mydomain\.com$
RewriteRule .? http://www.mydomain.com/forums [NC,P]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum