Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Help rewritemap same folder new pages. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rearmani
Newbie
Newbie


Joined: 23 July 2008
Location: Brazil
Online Status: Offline
Posts: 1
Posted: 17 September 2008 at 4:26pm | IP Logged Quote rearmani

I have to rewrite using 301 some pages.
The old ones and the new ones are in the same folder.
I try to use this rule.

  RewriteMap htsites txt:d:\Web\Www\hotsite.txt
  RewriteRule ^hotsite([^?]+) hotsite${htsites:$1}? [NC,R=301]

In my map:

/produtos/old_page.aspx /produtos/old-page.aspx
/produtos/old_page2.aspx /produtos/old-page2.aspx

When i try to rewrite to a different folder like:

/hotsite/produtos/old_page.aspx to /anotherfolder/produtos/old-page.aspx

It works..

But when i rewrite to the same folder

/hotsite/produtos/old_page.aspx to /hotsite/produtos/old-page.aspx

Don't Work.

Please can someone help me?



Edited by rearmani - 17 September 2008 at 4:28pm
Back to Top View rearmani's Profile Search for other posts by rearmani Visit rearmani's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 4840
Posted: 18 September 2008 at 2:06am | IP Logged Quote Anton

Please provide rewrite log records for working and non-working requests.

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