Enable the mod_rewrite module for Apache2 on Ubuntu server. The mod_rewrite module is not tested and is used by LinuxIDC. Sudoln-s/etc/apache2/mod-available/rewrite. load/etc/apache2/mod-enabled/rewrite. load and modify/etc/apache2/sites-enabled/000-default to include: Allo
Enable the mod_rewrite module for Apache2 on Ubuntu server. The mod_rewrite module is not tested and is used by LinuxIDC.
Sudo ln-s/etc/apache2/mod-available/rewrite. load/etc/apache2/mod-enabled/rewrite. load
Modify/etc/apache2/sites-enabled/000-default
Change AllowOverride None to AllowOverride All.
Restart apache2
/Etc/init. d/apache2 restart
New. htaccess
# Redirect everything in this directory to "good.html"
RewriteEngine on
RewriteRule. * good.html
--------------------------------
Add rewrite. load to/etc/apache2/mod-enabled and run the following command:
Sudo ln-s/etc/apache2/mod-available/rewrite. load/etc/apache2/mod-enabled/
Edit the apache configuration file:
Sudo vi/etc/apache2/sites-enabled/000-default
Set Change AllowOverride value to All
Restart apache:
Sudo/etc/init. d/apache2 restart