The method of removing the index.php of the WordPress fixed connection under the win host

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

My own host is Win2003 operating system VPS host, Just installed WordPress because index.php this file exists in the fixed connection, look strange, very strange, just try to get rid of it, after the constant attempt, finally put the method to the whole out, the following as a diary written on July 5, 2013 the last few minutes, but also hope that in the future to some use WordPress blog Friends some help.

First step: Create a 404.php file under the root directory (and index.php the same directory). This method can now be used to paste the local computer to copy the following code, and then save the 404.php. Code:

< Phpecho '; $qs = $_server[' query_string '];$_server[' request_uri '] = substr ($qs, Strpos ($qs, ': ") +3); $_server[' Path_info '] = $_server[' Request_uri '];include (' index.php ');? >

As shown in figure:

If the local 404.php files, then you can use FTP upload to the root directory, if it is built directly above the server, then directly save to 404.php.

Step Two: Open the IIS Information Server management, select the website, click the Property button (or right-click on the property) in the menu, go to the Custom error menu, select a file, click the Edit Occurrence dialog box to select the URL, and then the next box to write:/404.php to determine the success of the Save. Detailed operation can refer to the following figure:

Open the IIS Information Services management, select the site, click Properties or right-click to select Properties.

Select Custom Error

Select a file, click Edit, Pop-up dialog box, select URL.

Fill in the URL below:/404.php. Finally to their own blog background settings fixed connection:/%post_id%.html can be, of course, fixed connection can also be customized according to their preferences, this can be a slow try.

Successfully removed index.php.

The above is the results of my own experiment, successfully resolved the index.php file in WordPress Blog in a variety of bad, online there are some other methods, perhaps the server for different reasons, the method is not the same. But finally solved the problem is quite cool, but also detailed record down, hope that in the future to help the similar problems of friends. Article from http://www.nojjyy.com/20.html | Huangshou Blog Reproduced please indicate the source.

Related Article

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.