enable rewrite in Linux

0

I'm trying to enable rewrite in linux ubunto and I'm not getting it, it's different from Windows's WAMP, does anyone give me a way? I made this code but it does not work!

 RewriteEngine on
 RewriteCond %{SCRIPT_FILENAME} !-f
 RewriteCond %{SCRIPT_FILENAME} !-d
 RewriteRule ^(.*)$ /index.php?url=$1
    
asked by anonymous 01.06.2016 / 20:05

1 answer

0

To do this, you should open the ubuntu terminal, and type the following commands, just like this link of Ask Ubuntu.

run in terminal:

sudo a2enmod rewrite

then restart the apache webserver:

sudo service apache2 restart
    
01.06.2016 / 20:18