This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Rewrite Rule swapping charecters / symbol
Author
Message |
naustin
Newbie


Joined: 20 September 2011
Location: United Kingdom
Posts: 1
Posted: 20 September 2011 at 3:44am

Hi guys,

I am pretty new to Helicon manager and using the .htaccess, so far i have set up a few 301 redirects but nothing serious. The problem i am faced with currently is that i have been asked to swap all occurances of "_" with "-" through out the entire website. So just to clarify every url containing an underscore will now contain a dash.

i.e http://www.helicontech.com/forum/post_message_form.asp?FID=10 is now rendered as http://www.helicontech.com/forum/post-message-form.asp?FID=10

I was wondering if this is possible to do using the rewrite method or is this just a dream that i have no chance of achieving. There currently are over 100 possible alot more pages within the site and it needs to be applied to every single one of them.

Any other information can be provided i just seem to be getting no where with this.

Thanks
Nick

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 20 September 2011 at 8:40pm

Hello Nick,

the first example in exapmles section is quite similar. Try using smth like:

RewriteRule ^([^_]+)_(.*)$ /$1-$2 [NC,R=301,QSA]

Regards
Andrew

Back to Top
 

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

Printable version Printable version