The PHP Web site under Linux is placed under Windows Server IIS import. htaccess file pseudo-static rule conversion (WordPress)

Source: Internet
Author: User
Tags parent directory cpanel password protection

Special attention is paid to the following:

1.. htacdess files can be generated in WordPress

After installing WP Super cache, turn on the plugin >> settings >> advanced >> Find and click on the "Update mod_rewrite rule" button, which will generate the. htaccess file in the site root directory

Import the file into the URL rewrite module in IIS to

2. For the picture script style file 404 error, you can pass the following rules directly ignored

<name= "Jpgtest"  stopprocessing= "true">                    <  url= ". Jpg|. Png|. js|. css|. Swf|. GIF "/>                    <type=" None "/>                </rule>

The following is transferred from: http://www.cnblogs.com/tianxuan/p/4955602.html

This method is only suitable for Linux under the PHP Web site under the Windows Server IIS, the site in addition to the main page of normal sub-page all appear 404 error here The sub-page appears 404 error is that pseudo-static does not open

What is. htacdess:. Htaccess is called a distributed configuration file, which provides a way to change the configuration of a directory by placing a file containing one or more instructions in a particular document directory to act on this directory and all its subdirectories. and the directives in the subdirectories overwrite the higher-level directories or the directives in the master server configuration file. In general, if your virtual host is using a UNIX or Linux system, or any version of the Apache Web server, it is theoretically supported. htaccess. htaccess is in Apache HTTP Server A file that is set up under various permissions rules for the system directory, which exists in the Linux operating system. More common is the definition of the default home page name, 404 pages, 301 turn, and so on, there are more features such as pseudo-static, limit the picture outside the chain, limit the download, password protection, remove page ads, and so on, there are a lot of features are not listed.
In fact, most of these functions can be set in the Cpanel Control Panel (the equivalent of the graphical interface of the. htaccess). But for the master, cpanel for htaccess to provide the function is too little point, manual editing is kingly. Compared to the domestic virtual host, the vast majority of these functions are not

. htaccess file Directory rules
Generally we place the. htaccess file at the root of the Web site, control the directory and all subdirectories, and if placed in subdirectories, are affected by the. htaccess file in the parent directory.

The first step is to find the. htaccess file

The second step is to open the server on the IIS check site you want to modify click URL Path rewrite

Click on the right to import rules

Select the folder where the Web site is located find the. htaccess File Click Import

Rewrite rules successfully clicked on the right side of the app

* Note If an rewritebase error occurs with the import rule

Open a Web site file to find the. htaccess put Rewritebase/front Plus # (this represents comment out this rule) or delete directly

The PHP Web site under Linux is placed under Windows Server IIS import. htaccess file pseudo-static rule conversion (WordPress)

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.