how to work with friendly url [duplicate]

0

I have a site that does not use a friendly URL, my URL is like this link and it passes the parameters only I want the URL to be like this link in my htaccess to try to make friendly I did so:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /download/programa.php?id=$1&cat=$2&dev=$3 [L]

And how do I create the same condition for another page?

    
asked by anonymous 11.04.2017 / 17:19

1 answer

0

To do this via .htaccess should be like this:

RewriteEngine on

RewriteRule ^download/avast-free-antivirus$  ./download/programa?id=1&cat=113&dev=1

And so on, but I should warn you that this is not the best way to accomplish this function. I do not find good material in PT-BR, but if you know English I advise you to read that Article

    
11.04.2017 / 18:24