URL Rewriting doesn't seem to work. Apache2 URL Rewriting doesn't seem to work. Apache2 apache apache

URL Rewriting doesn't seem to work. Apache2


Ok well I fixed the problem, this is how I did it.

sudo gedit /etc/apache2/sites-available/default

and then I modified AllowOverride None to AllowOverride all in the /var/www/ part of the file

<Directory /var/www/>    Options Indexes FollowSymLinks MultiViews    AllowOverride all #This was 'None' before, change it to 'all'    Order allow,deny    allow from all</Directory>


This worked for me after removing the forward slash:

RewriteEngine On RewriteBase /test RewriteRule ^(.+)$ page.php?id=$1 [NC,L]