Tags: anothercharacter, anyfunction, apache, character, htaccess, mod_rewrite, occurance, software

mod_rewrite: replace all occurance of a character

On Software » Apache

840 words with 1 Comments; publish: Mon, 19 May 2008 22:04:00 GMT; (40031.25, « »)

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

All Comments

Leave a comment...

  • 1 Comments
    • On 2005-01-06, jason.yfho.apache.todaysummary.com.gmail.com <jason.yfho.apache.todaysummary.com.gmail.com> wrote:

      > I would like to replace all occurance of a character by another

      You multiposted this crap on the whole usenet, this is not going to

      get you an answer, not the answer you want anyway. Start RTFM

      Davide

      Virus error:

      A virus has been activated in a DOS session. The virus, however, requires

      Windows. All tasks will automatically be closed and the virus will be activa

      ted

      again.

      #1; Mon, 19 May 2008 22:06:00 GMT