Problems with mod_rewrite

Asked

Viewed 326 times

1

I’m having a problem with mod_rewrite on . htaccess.

The problem is this: If I research something like Michael Jackson looks like this: site.com/search/Michael%20Jackson/82920rdn#go everything goes normal.

But if I search Michael Jackson 100% original of the following error below because of % (percentage). I did some research and saw that the error is in the friendly URL, but found no solution.

Error:

Bad Request

Your browser sent a request that this server could not understand. Additionally, a 400 Bad Request error was encountered while trying to use an Errordocument to Handle the request.

My code in . htaccess:

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteRule ^pesquisar/([^/]+)/([a-z0-9-]+)/?$ /index.php?action=pesquisar&busca=$1&token=$2 [L]
 </IfModule>

Any solution to this?

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.