How to let Phpnow support wordpress Static Link Method _ server other

Source: Internet
Author: User
Phpnow has an advantage is directly installed Zendoptimizer, of course, the general people are not used to this, for a while.

In my experiment, XAMPP is directly supported by the static of WordPress. Phpnow Although also opened the Apache Mod_rewrite module, but to the static of WordPress also depends on. htaccess This file (possibly Xampp as well).

The configuration method is as follows.

First go to WordPress's directory, find the. htaccess file, edit it with Notepad.

If you don't have this file, you need to open Notepad first, save the file as, select All files, and then set the file name to. htaccess to the directory where WordPress resides. Why so troublesome? Because Windows does not support. htaccess this filename. So if you just right-click to create a text file, and then want to change it to. htaccess will give an error.

With the. htaccess this file, edit the file and enter the following:

Copy Code code as follows:

# BEGIN WordPress

Rewriteengine on
Rewritebase/
Rewritecond%{request_filename}!-f
Rewritecond%{request_filename}!-d
Rewriterule. /wpcourse/index.php [L]

# End WordPress

Note The/wpcourse this is the directory where you have wordpress.

For example, your WordPress address is http://localhost/wpcourse, so here is what to write.

Finally, restart the Phpnow, it's OK.

The restart method is to run Pncp.cmd, enter 23, return.

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.