How to Implement pseudo-static

Source: Internet
Author: User
How does one implement pseudo-static data? How does one put www. kaimen360.comexquisite. php In the php program? How does modshowid512 implement pseudo-static? ------ Solution -------------------- Server: ApacheX-Powered-By: PHP5.3.27 how to enable the urlrewrite function in Apache depends on your rules ------ Solution

How to Implement pseudo static, how to put the http://www.kaimen360.com/exquisite.php in the php program? Mod = showid = 512 implement pseudo static? ------ Solution -------------------- Server: Apache X-Powered-By: PHP/5.3.27 how to enable the urlrewrite function in Apache depends on your rules ------ Solution

How to Implement pseudo-static
How to put http://www.kaimen360.com/exquisite.php in php programs? Mod = show & id = 512 implement pseudo static?
------ Solution ----------------------
Server: Apache
X-Powered-By: PHP/5.3.27

Enable url rewrite in Apache

How Pseudo It depends on your rules.

------ Solution ----------------------
You can use apache rewrite.
It depends on your rules.

For example:
Http://www.kaimen360.com/exquisite.php? Mod = show & id = 512
To display
Http://www.kaimen360.com/exquisite_512.html

You can create a. htaccess file in the root directory.
The content is as follows:


RewriteEngine on

RewriteRule 'exquisite_(.*)\.html' exquisite.php?mod=show&id=$1 [NC]


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.