Search Engine and RewriteEngine

Discussion in 'Apache' started by FIG-GHD742, Apr 27, 2010.

  1. #1
    Hello.
    I need help with a conversion RewriteEngine
    The thing is that I have a url that apache will catch up with the RewriteEngine.
    Example: the url.
    http://my/visdomsord/sok/Tankar
    I have a filter that looks like this

    			RewriteCond %{REQUEST_FILENAME} !-f
    			RewriteRule ^(visdomsord/sok/)(.*)$ index.php?com=visdomsord&word=$2&%{QUERY_STRING} [L]
    Code (markup):

    The filters capture the post and add transform this from http://my/visdomsord/sok/helloworld
    to
    index.php?com=visdomsord&word=helloworld&

    It work fine as long as I not have & in my text
    Tex.
    http://my/visdomsord/sok/Tankar&Kanslor
    well give
    index.php?com=visdomsord&word=Tankar&Kanslor=&

    But i well has some like this out
    index.php?com=visdomsord&word=Tankar%26Kanslor=&
    so php get well do $_GET['word']=Tankar&Kanslor

    I hopps some understand what i well do?

    / FIG
     
    FIG-GHD742, Apr 27, 2010 IP