First install the apache with this command:
Now use locate to find if the mod_rewrite.so is availble on your server:
it will found in “/usr/lib/apache2/modules”
New apache follow some folders to enable and disable mods so now do this:
Now paste this following line:
Then edit:
In case of Windows go with apache configuration file:
Find the following:
and change it to
and finally restart Apache:
Now Its Done!!!
Enjoy.....
apt-get install apache2Now use locate to find if the mod_rewrite.so is availble on your server:
updatedblocate mod_rewrite.soit will found in “/usr/lib/apache2/modules”
New apache follow some folders to enable and disable mods so now do this:
cd /etc/apache2/mods-enabledtouch rewrite.loadvim rewrite.load (you may use any editor to edit this file)Now paste this following line:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.soThen edit:
/etc/apache2/sites-available/default
In case of Windows go with apache configuration file:
conf/httpd.confFind the following:
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from alland change it to
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from alland finally restart Apache:
/etc/init.d/apache2 restartNow Its Done!!!
Enjoy.....
No comments:
Post a Comment