mod_rewrite: replace all occurance of a character

This is a discussion on mod_rewrite: replace all occurance of a character within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi, I would like to replace all occurance of a character by another character in mod_rewrite of .htaccess. However, I ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-06-2005
jason.yfho@gmail.com
 
Posts: n/a
Default mod_rewrite: replace all occurance of a character

Hi,

I would like to replace all occurance of a character by another
character in mod_rewrite of .htaccess. However, I cannot find any
function to do this.

E.g. replace all "-" in "http://www.a-f.com/de-fg/d-f" by "_" and the
result should become "http://www.a_f.com/de_fg/d_f"

Thanks,
Jason

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0