Friday, 15 June 2012
How To Enable Use Of Htaccess In Apache In Ubuntu
This How To provides a detail on how to enable use of .htaccess file in apache in ubuntu and the similar flavors of linux distribution.
To enable use of .htaccess, you can edit the /etc/apache2/sites-available/default file. Search for the portion which contains the following lines or something similar to that(The bold line is almost always present):
All you have to do is change the bold line above to:
Now you will need to restart the apache service so that the effect of change in configuration takes place. Enter the following command to restart the apache service:
Now your .htaccess files will start to work in ubuntu. :)
To enable use of .htaccess, you can edit the /etc/apache2/sites-available/default file. Search for the portion which contains the following lines or something similar to that(The bold line is almost always present):
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
All you have to do is change the bold line above to:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Now you will need to restart the apache service so that the effect of change in configuration takes place. Enter the following command to restart the apache service:
samar@Techgaun:~$ sudo service apache2 reload
Now your .htaccess files will start to work in ubuntu. :)
Labels:
htaccess,
linux,
tricks and tips,
ubuntu
Bookmark this post:blogger tutorials
Social Bookmarking Blogger Widget |
How To Enable Use Of Htaccess In Apache In Ubuntu
2012-06-15T21:53:00+05:45
Cool Samar
htaccess|linux|tricks and tips|ubuntu|
Subscribe to:
Post Comments (Atom)