3 aşamadan oluşmakta kısaca:
1. Öncelikle rewrite.load ı /etc/apache2/mods-enabled/ dizinine yükleyeceğiz.
Kod: Tümünü seç
sudo ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
Kod: Tümünü seç
sudo gedit /etc/apache2/sites-enabled/000-default
Kod: Tümünü seç
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# Commented out for Ubuntu
#RedirectMatch ^/$ /apache2-default/
</Directory>
Kod: Tümünü seç
sudo /etc/init.d/apache2 restart