Forum Moderators: phranque
RewriteCond %{REQUEST_FILENAME} !-fThis give me the clean url, eg: instead this:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?key/(.*?)/?$ /search.php?key=$1 [L]
# And in order to redirect the query string URL to the nicer looking one:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\ /search\.php\?key=([^\&\ ]+)
RewriteRule ^/?search\.php$ /key/%1? [L,R=301]
http://www.example.com/search.php?key=blablablaI got this what I need:
http://www.example.com/search/key/blablablaHowever, the problem come up with spec. foreign chars, eg:
http://www.example.com/search.php?key=fähigkeitengive me:
http://www.example.com/search/key/f%25C3%25A4higkeitenAny help will be appreciated, thanks!