What is pseudo-static

Source: Internet
Author: User
What is pseudo-static? I have been talking about static and pseudo-static in the forum. Which of the following statements can be specific, or is there any complete reference or learning materials? thank you!


Reply to discussion (solution)

Pseudo-static is the file that your urlinputs is a static. HTML file, which is actually a dynamic page processed by the background. You can also beautify your actual url.

Pseudo static is like this:
You access the http://www.baidu.com/index.html, actually accessing the http://www.baidu.com/index.php.

In fact, this is also the case of pseudo-static.


1. check whether Apache supports mod_rewrite. # enable RewriteEngine mode.
2. create an. htaccess file, place the pseudo-static setting text in the website directory, and modify the php-related link code. You have to write more information on the previous pages. It took me a few days.

RewriteEngine On
RewriteRule ^ archiver/(fid | tid)-[0-9] + \. html) $ archiver/index. php? $1
RewriteRule ^ forum-([0-9] +)-([0-9] +) \. html $ forumdisplay. php? Fid = $1 & page = $2
RewriteRule ^ thread-([0-9] +)-([0-9] +)-([0-9] +) \. html $ viewthread. php? Tid = $1 & extra = page \ % 3D $3 & page = $2
RewriteRule ^ space-(username | uid)-(. +) \. html $ space. php? $1 = $2
RewriteRule ^ tag-(. +) \. html $ tag. php? Name = $1

Baidu, it's not hard.

Apache url rewriting can achieve pseudo-static state. There are many instances on the Internet.

Pseudo-static means that the url address is defined as the desired url address.

A php file generates an html file for users to access. this is static.
If you do not generate an html file, you can still access it through the url with the html suffix, so that the URL is rewritten to point to the PHP file, which is pseudo-static.
Compared with static, the URLs with html suffixes are accessed, but the services point to PHP files, so they are pseudo.
Http://baike.baidu.com/view/1570373.htm

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.