Redirect site with . htacess

Asked

Viewed 113 times

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 her to stay that way:

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

I tried to do it the way down unsuccessfully:

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]
  • 1

    And what mistake is happening?

  • Displays default error :HTTP error 403.14 - Forbidden The web server is configured not to list the contents of this directory.

No answers

Browser other questions tagged

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