Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

WBOY
Release: 2016-07-29 08:54:17
Original
1149 people have browsed it

Pseudo-static implementation

Introduction

It is mainly implemented using a rewrite module provided by Apache, which can realize the rewriting of URL addresses.

Use

  1. Enable configuration

    Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

  2. Change the configuration in the virtual host

    Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

  3. Create a .htaccess file in the root directory of the website

    Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

    Case 1

    Convert dynamic URL address into a static HTML address

    http://local.order.com/index.html ----》Apache server (rewrite rewrite----》index.php file)----》Return to the browser

    Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

    RewriteEngine On #Turn on the rewrite function

    RewriteRule index.html index.php # Redirect the index.html requested by the user to the index.php file

    Effect:

    index.php file

    Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

    Browser

    Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

    Case 2

    Use regular expressions in the rewrite module

    Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

    Effect:

    goods.php file

    Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

    Browser:

    Pseudo-static implementation discuz pseudo-static settings iis pseudo-static configuration pseudo-static is good

The above has introduced the implementation of pseudo-static, including pseudo-static and implementation aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!