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: Site Redirection
Author
Message |
vishalmishra51
Newbie


Joined: 20 October 2010
Location: India
Posts: 7
Posted: 21 January 2011 at 5:24am

I want this type of redirection

http://www.XXX.com/kshfddskfhsdfhsk

to be redirected to

http://www.XXX.com/

 

This redirection should follow a 404 redirection as

http://www.XXX.com/kshfddskfhsdfhsk does not exists in the website  and the above redirection should not affect my any working URL

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 21 January 2011 at 7:37am

Do you want this to work on ISAPI_Rewrite2?
It is easy to achieve on ISAPI_Rewrite3, but on v2 there's no direct way to do this.
You can only do something like this:

[ISAPI_Rewrite]

RewriteRule /(?!list|all|physical|folders|here).* http\://www.XXX.com/404.asp [I,RP]


__________________
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