| Posted: 17 September 2008 at 4:26pm | IP Logged
|
|
|
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
|