Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: isapi_rewrite two multi-site domain names Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
monkey
Newbie
Newbie


Joined: 22 January 2010
Online Status: Offline
Posts: 2
Posted: 22 January 2010 at 9:07pm | IP Logged Quote monkey

I would like to achieve the following results

http://font.bookbox.com

< ="application/x-shockwave-flash" ="http://www.gstatic.com/translate/_p.swf" id="tts_" width="18" height="18">< value="http://www.gstatic.com/translate/_p.swf" name="movie">< value="_name=" name="flashvars">< value="transparent" name="wmode">< value="always" name="allowAccess">
Rewrite to
http://www.bookbox.com/font/

I wrote a rule, but it will appear 404 pages, pages can not be found
.
code is:

# To exclude the current needs of the virtual hosts on the server directly to the actual directory in accordance with the normal access to the domain name

RewriteCond Host: (?:www)\.jinapi365\.com
RewriteRule (.*) $1 [L]


RewriteCond Host: (.+)
RewriteRule /font/ http://font.bookbox.com/ [I,R,L]

#
Visitors in the address bar can not see two directories. $ 1 is the regular expression (. +), Which matches the contents.

RewriteCond Host: (?!www)(.+)\.bookbox\.com
RewriteRule (.*) /$1$2

Ask for help, thank you!!
Back to Top View monkey's Profile Search for other posts by monkey
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10487
Posted: 25 January 2010 at 4:27am | IP Logged Quote Anton

Sorry, but your explanation is not quite clear. Nevertheless please try to fix your rules like this:

RewriteCond Host: (?:www\.)?jinapi365\.com
RewriteRule (.*) $1 [L]

RewriteRule /font/ http://font.bookbox.com/ [I,R,L]

#Visitors in the address bar can not see two directories. $ 1 is the regular expression (. +), Which matches the contents.

RewriteCond Host: (?!www)(.+)\.bookbox\.com
RewriteRule (.*) /$1$2

If something doesn't work, please provide explicit examples of what the request and the result should look like.

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


Joined: 22 January 2010
Online Status: Offline
Posts: 2
Posted: 25 January 2010 at 5:05am | IP Logged Quote monkey

Thank you for your answer ,it's already working. I have deleted the global filter of isapi_rewriter which is in iis web site
Back to Top View monkey's Profile Search for other posts by monkey
 

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 cannot vote in polls in this forum