Redirect site with .htacess

0

I need to use friendly urls and am trying to make an adjustment with .htacess

I have a url:

http://www.site.com.br/default.asp?id=meuid&acao=minhaacao&hint=minhahint

I need it to look like this:

http://www.site.com.br/meuid?acao=minhaacao&hint=minhahint

I tried to do this as unsuccessful:

RewriteEngine on
RewriteRule ^([^/]+)/([^/\.]+)/?$ default.asp?site=$1&pid=$2 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

And so

RewriteRule ^/(.*)$ /default.asp?id=$1&acao=$3&hint=$4  [QSA]
    
asked by anonymous 01.05.2015 / 18:00

0 answers