Replace %20 [spaces] with underscore [_]

This is a discussion on Replace %20 [spaces] with underscore [_] within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi everybody, For the past 3 days i've been looking for an apache tutorial where i could learn how ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2006
EOZyo
 
Posts: n/a
Default Replace %20 [spaces] with underscore [_]

Hi everybody,

For the past 3 days i've been looking for an apache tutorial where i
could learn how to change the blank spaces [%20] from a url and change
it for an underscore [ _ ] just like in wikipedia, and unfortunately
i've found nothing, maybe i'm trying with a tool [mod_rewrite] that i
shouldn't even consider for this.

Let me explain you with an example.

If you type in your browser:

http://en.wikipedia.org/Apache HTTP Server the URL will be rewritten to
http://en.wikipedia.org/Apache_HTTP_Server

So far, what my server [Apache 2.0.52] will do is:

http://en.wikipedia.org/Apache%20HTTP%20Server

I'm not asking to solve my problem, just some pointers :)

Thank you all
EOZyo

  #2 (permalink)  
Old 08-23-2006
Werner Flamme
 
Posts: n/a
Default Re: Replace %20 [spaces] with underscore [_]

EOZyo schrieb am 23.08.2006 03:37:
> Hi everybody,
>
> For the past 3 days i've been looking for an apache tutorial where i
> could learn how to change the blank spaces [%20] from a url and change
> it for an underscore [ _ ] just like in wikipedia, and unfortunately
> i've found nothing, maybe i'm trying with a tool [mod_rewrite] that i
> shouldn't even consider for this.
>
> Let me explain you with an example.
>
> If you type in your browser:
>
> http://en.wikipedia.org/Apache HTTP Server the URL will be rewritten to
> http://en.wikipedia.org/Apache_HTTP_Server
>
> So far, what my server [Apache 2.0.52] will do is:
>
> http://en.wikipedia.org/Apache%20HTTP%20Server
>
> I'm not asking to solve my problem, just some pointers :)
>
> Thank you all
> EOZyo
>


An URL hast to be encoded. This encoding follows rules. It cannot be
changed. When you use blanks in your file names, you have to accept %20 in
the URL. Except when you use a software, that translates those filenames
internally, as nearly every wiki software does.

Regards,
Werner
  #3 (permalink)  
Old 08-23-2006
EOZyo
 
Posts: n/a
Default Re: Replace %20 [spaces] with underscore [_]

So is it a external software? no rewrite rules U_U? Thank you Werner,
that makes sense since for 3 days i didn't find a single tutorial
related to this subject.

Thanks man for avoiding me to lose more time :)

Regards,
EOZyo

>Werner Flamme wrote:
>
> An URL hast to be encoded. This encoding follows rules. It cannot be
> changed. When you use blanks in your file names, you have to accept %20 in
> the URL. Except when you use a software, that translates those filenames
> internally, as nearly every wiki software does.
>
> Regards,
> Werner


 
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 06:30 AM.


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