enable rewrite on Linux

Asked

Viewed 37 times

0

Guys I’m trying to enable rewrite in linux ubunto and I’m not getting, it’s different from windows WAMP, someone give me a way? I made this code but it doesn’t work!

 RewriteEngine on
 RewriteCond %{SCRIPT_FILENAME} !-f
 RewriteCond %{SCRIPT_FILENAME} !-d
 RewriteRule ^(.*)$ /index.php?url=$1

1 answer

0

to do so, you must open the Ubuntu terminal, and type the following commands in the same way as this link ask Ubuntu.

execute on the terminal:

sudo a2enmod rewrite

then restart the apache webserver:

sudo service apache2 restart

Browser other questions tagged

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