This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: no / rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
wzx5137
Newbie
Newbie


Joined: 07 June 2011
Online Status: Offline
Posts: 3
Posted: 07 June 2011 at 8:41am | IP Logged Quote wzx5137

[ISAPI_Rewrite]
RewriteCond Host:  www\.binglixue\.com
RewriteRule ^(.*)$ /pathology/$1

if www.binglixue.com/cai/ then www.binglixue.com/cai/

but  www.binglixue.com/cai then  www.binglixue.com/pathology/cai/

why?

Back to Top View wzx5137's Profile Search for other posts by wzx5137
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 08 June 2011 at 2:11am | IP Logged Quote Anton

Is should be this:

[ISAPI_Rewrite]
RewriteCond Host: www\.binglixue\.com
RewriteRule ^([^/]+)/?$ /pathology/$1/

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


Joined: 07 June 2011
Online Status: Offline
Posts: 3
Posted: 09 June 2011 at 7:22am | IP Logged Quote wzx5137

thank you.

but my means:

 The Folder /pathology/  is a website(www.binglixue.com).

when input www.binglixue.com/cai , error.

but input www.binglixue.com/cai/ , right.

Back to Top View wzx5137's Profile Search for other posts by wzx5137
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 10 June 2011 at 4:14am | IP Logged Quote Anton

Please try to fix the rule like this:

[ISAPI_Rewrite]
RewriteCond Host: www\.binglixue\.com
RewriteRule /([^/]+)/? /pathology/$1/


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