Networking Forums

Networking Forums > Computer Networking > Linux Networking > mod_rewrite: replace all occurance of a character

Reply
Thread Tools Display Modes

mod_rewrite: replace all occurance of a character

 
 
jason.yfho@gmail.com
Guest
Posts: n/a

 
      01-06-2005, 02:46 PM
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

 
Reply With Quote
 
 
 
 
Philippe WEILL
Guest
Posts: n/a

 
      01-06-2005, 03:01 PM


(E-Mail Removed) wrote:
> 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"


"_" in domain name is not RFC compliant and should not be used

--
Weill Philippe - Administrateur Systeme et Reseaux
 
Reply With Quote
 
jason.yfho@gmail.com
Guest
Posts: n/a

 
      01-06-2005, 03:34 PM
Hi Weill Philippe,

Thank you for your reply. I've given a poor example. If not replace by
"_", how to replace all "-" by "a"?

Thanks,
Jason

 
Reply With Quote
 
 
 
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Telnet control character Tauno Voipio Linux Networking 0 09-07-2010 02:52 PM
Apache mod_rewrite mod_proxy_html Henning Eiben Linux Networking 2 02-08-2007 02:45 PM
mod_rewrite madness Michael Mol Linux Networking 3 02-08-2007 06:55 AM
mod_rewrite help needed google@w98.us Linux Networking 1 02-10-2005 07:55 AM
UNC with 14 character computer name Mark Owens Windows Networking 0 01-05-2004 03:28 PM



1 2 3 4 5 6 7 8 9 10 11