This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
LinkFreeze (Forum Locked Forum Locked)
 Helicon Tech : LinkFreeze
Subject Topic: %20 to dash - (Topic Closed Topic Closed)
Author
Message |
3plains
Newbie


Joined: 07 January 2007
Location: United States
Posts: 14
Posted: 31 August 2007 at 5:15pm  

Have a space (%20) to dash (-) problem:

Have this currently:

http://www.ultimatepheasanthunting.com/USA/South%20Dakota/

Need to do this instead:

http://www.ultimatepheasanthunting.com/USA/South-Dakota/

How do I convert the space or %20 to a dash (-)? state.cfm?id=South Dakota

This is what I have so far:

RewriteRule /USA/([^.?/]+)/ /state.cfm\?id=$1 [I,L]

This is the page:

http://www.ultimatepheasanthunting.com/state.cfm?id=South%20Dakota

Back to Top Visit 3plains's Homepage
 
Sergey
Admin Group


Joined: 11 March 2005
Posts: 750
Posted: 01 September 2007 at 3:45am  

Try this rules

RewriteRule /USA/([^\-]*)-(.*) /USA/$1\%20$2 [I,NS]
RewriteRule /USA/([^.?/]+)/? /state.cfm\?id=$1 [I,L]
Back to Top
 
3plains
Newbie


Joined: 07 January 2007
Location: United States
Posts: 14
Posted: 01 September 2007 at 3:55am  

Sergey, worked like a charm. Thanks
Back to Top Visit 3plains's Homepage
 

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