首页 > 代码库 > activate mod_rewrite How To Set Up mod_rewrite for Apache on Ubuntu 14.04

activate mod_rewrite How To Set Up mod_rewrite for Apache on Ubuntu 14.04

w命令行搞定。

https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite-for-apache-on-ubuntu-14-04

1 ubuntu@ubuntu:~$ su
2 Password:
3 root@ubuntu:/home/ubuntu# a2enmod rewrite
4 Enabling module rewrite.
5 To activate the new configuration, you need to run:
6   service apache2 restart
7 root@ubuntu:/home/ubuntu# service apache2 restart

 

activate mod_rewrite How To Set Up mod_rewrite for Apache on Ubuntu 14.04