Many Linux-type hosts in China do not open .htaccess by default, which leads to the lack of support for pseudo-static. Foreign virtual hosts basically support this service.
Many webmasters simply think that .htaccess is pseudo-static, using .htaccess as a pseudo-static synonym, thinking that .htaccess plays the role of .htaccess, but its role is much larger than you think. , out of pseudo-static, as well as our well-known 404, 301 jump, etc., can be achieved through .htaccess, let me introduce how to open the .htaccess support under the Linux host, you have this Permissions, generally this is for servers or VPS, virtual hosting is basically no way, unless you ask the provider to help you open. Another situation is that some children's shoes use this method when building PHP
+MySQL+Apache locally. The local one-click installation package has xampp and phpnow, etc. I personally recommend using phpnow, easy to use. , completely foolish. If you use phpnow to build it, you don't have to look down, because the default is turned on.
The method is as follows:
First: find httpd.conf in the conf folder under the Apache folder, notepad or similar editing tool after opening Ctrl+ F find "LoadModule rewrite_module", find the line where "LoadModule rewrite_module modules /mod_rewrite.so" is located, make sure that there is no # in front of this line, it means that the pseudo-static module has been loaded, if there is # in front of this line, please remove it. After phpnow is installed, there is no # by default.
Second: Let the Apache server support .htaccess, how to make your own local Apache server support?.htaccess”? In fact, simply modify the httpd.conf settings of apache. Let support .htaccess. Open the httpd.conf file and open it with a text editor. Find
Options FollowSymLinks
AllowOverride None
Change to
Options FollowSymLinks
AllowOverride All
The first is to determine if a pseudo-static module has been loaded, and the second is to modify the settings here. After the operation, test whether .htaccess has taken effect. If it is not yet valid, please restart the Apache service.
directory summary: /: root directory, generally only the directory under the root directory, do not
You can try it, but dont do bad things. Fortunately, I need a password to modify m
First time when the basic network configuration is 1. Check the network mac address first[root@cento
Worker. Client: The originator of the request, which can be C, PHP, Perl, MySQL UDF, etc. Job: The
Linux Memory Management Knowledge
N kinds of weapons for finding vulnerabilities under Linux
IIS server does not support ASP.NET solution
Awk regular expressions, regular operators detailed
Automotive industry dealing with the Linux operating system
What does the Unix/linux kernel play in the system?
How to modify the Linux MAC address in the VMware virtual machine
Win10 new browser or will support voice function
Windows7 wired network card automatically obtain IP address setting steps
Win8 comes with "Windows7 file recovery" to make a recovery image how to use
Four major reasons why the system is getting slower after Vista installation
Deploying DHCP Common Mistakes
How to use Win10 to quickly open system tools
Win10 preview version 10041 system VIA Via sound card no sound solution
Leverage rack switches for low cost and high efficiency
How to enable the win10 guest account
How to delete the shortcut icon in the win10 official version start menu?