I recently used Ubuntu to test my website server. The reason is that the visual operations of ubuntu are very practical for linux cainiao like me. Recently installed LAMP for debugging, and found that the. htaccess file is not supported, that is, pseudo static. So I learned how to enable this function only after repeated online query debugging. Sudoa2enmodrewrite enable Rewrite module sudo/etc/init. d/apache2restartsudogedi
I recently used Ubuntu to test my website server. The reason is that the visual operations of ubuntu are very practical for linux cainiao like me. Recently installed LAMP for debugging, and found that the. htaccess file is not supported, that is, pseudo static. So I learned how to enable this function only after repeated online query debugging.
Sudo a2enmod rewrite enable Rewrite module sudo/etc/init. d/apache2 restart
Sudo gedit/etc/apache2/sites-available/default modify the following
Options FollowSymLinks
AllowOverride None (change to AllowOverride All)
Options Indexes FollowSymLinks MultiViews
AllowOverride None (change to AllowOverride All)
Order allow, deny
Allow from all
In fact, the solution posted elsewhere on the Internet is to change the Options FollowSymlinks. Actually, no. www.linuxidc.com needs to modify Options Indexes FollowSymLinks MultiViews.
Sudo/etc/init. d/apache2 restart. Create the. htaccess file touch. htaccess under the website.
Modify the attributes of the. htaccess file chmod-R 777. htaccess