Once you run this command, apache will tell you that this rewrite module is enabled. You can find mod_rewrite enabled and show up in your test.php file.
I often experienced
page not found 404 error with
debian/ubuntu versions eventhough your apache runs with mod-rewrite. To fix this, you will need to edit the following file to make some changes.
nano /etc/apache2/sites-enabled/000-default
متن های زیر را پیدا کنید و AllowOverride را به All تغییر دهید ...
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride
All
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
حال فایل .htaccess خود را آپلود کنید و سپس آپاچی خود را به وسیله دستور زیر رستارت کنید:
/etc/init.d/apache2 restart
قسمت سوم هم به پایان رسید ....