Let the Linux host open. htaccess support __linux

Source: Internet
Author: User

Original address: http://www.zoneself.org/2012/02/10/content_235.html

Many Linux hosts in the country are not enabled by default. htaccess, resulting in no support for pseudo static. And the foreign virtual host is basically support this service, I have asked the domestic host provider why not open. htaccess service, their answer is ridiculous, that is to reduce the burden on the server, ah, this is really in line with China's national conditions, really let you do not know what language to fight back.

Here for some rookie sweep literacy, A lot of stationmaster all pure thought. htaccess is pseudo static, put. htaccess as pseudo static pronoun, thought. htaccess. The role of htaccess, in fact, it's more than you think of a much larger, out of the pseudo static, and we are familiar with the 404 Ah, 301 Jump Ah etc, Can be implemented through the. htaccess, let's show you how to open the Linux host. htaccess support, if you have this permission, generally this is for the server or VPS, virtual host is basically no way, unless you ask the provider to help you open. Another situation is that some children's shoes in the local building Php+mysql+apache this method, the local one-button installation package has XAMPP and Phpnow, I personally recommend the use of Phpnow, simple and easy-to-use, complete fool-like. If you use Phpnow to build, you don't have to look down, because the default is open.

The method is as follows:

First: In the Apache folder under the Conf folder to find httpd.conf, Notepad or similar editing tools open ctrl+f find "LoadModule rewrite_module", find "LoadModule rewrite_ Module modules/mod_rewrite.so "In the line, to determine that there is no # in front of this line, it shows that the pseudo static module has been loaded, if there is a # in front of this line, please remove, Phpnow installed after the default is not #.

Second: Let the Apache server support. htaccess, how do you get your local Apache server to support ". htaccess"? In fact, simply modify the Apache httpd.conf settings to allow support. htaccess. Open the httpd.conf file, and when opened with a text editor, look for

Options followsymlinks
allowoverride None

to

Options FollowSymLinks
AllowOverride All

The first is to determine whether the pseudo static module has been loaded, and the second is to modify this setting. After the operation, Test. htaccess has been in effect, please reboot the Apache service if it has not yet taken effect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.