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 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: no / rewrite
Author
Message |
wzx5137
Newbie


Joined: 07 June 2011
Posts: 3
Posted: 07 June 2011 at 8:41am

[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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 08 June 2011 at 2:11am

Is should be this:

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

__________________
Regards,
Anton
Back to Top
 
wzx5137
Newbie


Joined: 07 June 2011
Posts: 3
Posted: 09 June 2011 at 7:22am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 10 June 2011 at 4:14am

Please try to fix the rule like this:

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


__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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