.htaccess configure with apache Ubuntu
To configure .htaccess with apache we need to rewrite conf file1. nano /etc/apache2/sites-available/000-default.conf
<VirtualHost *>
ServerName cyan.red
ServerAlias www.cyan.red
DocumentRoot /var/www/html
<Directory /var/www/html>
Options FollowSymLinks
AllowOverride all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
2. a2ensite 000-default.conf
3. a2enmod rewrite
4. service apache2 restart
post a comment