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: How to hide directory in url Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
megahawk88
Newbie
Newbie


Joined: 08 March 2011
Location: Vietnam
Online Status: Offline
Posts: 4
Posted: 15 March 2011 at 2:45am | IP Logged Quote megahawk88

Hi, i'm a newbie to ISAPI_rewrite 3.
I'd like to have the url:

http://www.mywebsite.com/Directory1/page.aspx

turned in to:

http://www.mywebsite.com/page.html

Please help me.
Thanks
Back to Top View megahawk88's Profile Search for other posts by megahawk88 Visit megahawk88's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 15 March 2011 at 4:28am | IP Logged Quote Anton

Please try to use the following:

[ISAPI_Rewrite]

RewriteRule /([^/]+)\.html /Directory1/$1.aspx [I,L]

Note that if you have any physical html files in the root, we'll need to modify the rule a bit to exclude them from being processed.

__________________
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