I just installed the LAMP stack on my Ubuntu system.
The redirection is not working for me. I don't know how to fix it. Can anyone help me?
|
I just installed the LAMP stack on my Ubuntu system. The redirection is not working for me. I don't know how to fix it. Can anyone help me? |
||||
|
To enable it the rewrite module, run "apache2 enable module rewrite":
You need to restart the webserver to apply the changes:
If you plan on using mod_rewrite in
After such a change, you need to restart Apache again. |
|||||||||||||||||||||
|
|
I dare to add a special answer (as a followup to the great answer above) regarding ubuntu 14.04 and In 14.04, the name of the default configuration file is changed to
add the following to the end of the file :
For some reason, in Ubuntu 14.04 and apache2 the root is set to
to
and then off course it should be
|
|||||||||||||
|
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
/etc/apache2and which can be enabled usinga2*programs. – Lekensteyn Jun 12 '11 at 18:58