What is pseudo-static? Simply put the dynamic URL into a static URL display, called pseudo-static. "Pseudo" is false, not the real static URL, is achieved through technical means. Users as long as the open hassle-free PHP virtual space to support URL rewriting function, without any other settings, we use pseudo-static advantage, is to optimize the network engine, improve site weight. The static processing of the website is a very important site SEO optimization of a job. Thinkphp can also realize pseudo-static processing by means of technology.
Satisfies the thinkphp pseudo static (URL rewrite) condition:
1, the server to open the Url_rewrite function, Linux space PHP virtual host only need to open Apache Mod_rewriet, if it is iis6.0 will install ISAPI rewrite module, Apache just open mod_ The rewrite function is available.
2. Need to write. htaccess files, Windows space editing Httpd.ini files.
This site is written under the Linux space. htaccess file with thinkphp official documentation, the code is as follows:
<ifmodule mod_rewrite.c>%{request_filename}-%{request_filename}-^ (. *) $ index.php/$1 [qsa,pt,l]</IfModule>
thinkphp pseudo-static rules-htaccess and Httpd.ini hidden index.php solutions