Mod_rewrite problem when using a + in the URL

Discussion in 'Apache' started by yevlesh, Jul 4, 2007.

  1. #1
    I have this very weird problem which can't seem to resolve. Would greatly appreciate some help.

    Here is what my mod_rewrite section of htaccess looks like


    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteOptions MaxRedirects=4
    RewriteRule ([^/]+)/([^/]+) /2music/song2.php?type={ifsearch:GoogleAdWordsSearch}{ifcontent:GoogleAdWordsContent}&src=gadw&campaign=SongTone&artist=$1&titel=$2


    If I have use a url such as
    http://www.mysite.com/2Pac/Song , everything works great
    However, in many cases I need to include + signs in the URL for the php script I am using. But if I use a URL like
    http://www.mysite.com/Juice+Newton/Angel+Of+The+Morning , the system automatically replaces all plus signs with spaces.

    This only happens when I have mod_rewrite enabled.
     
    yevlesh, Jul 4, 2007 IP
  2. yevlesh

    yevlesh Active Member

    Messages:
    162
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Anyone know how to fix this?
     
    yevlesh, Jul 4, 2007 IP