Last update at :2024-06-12,Edit by888u
Generally speaking, if we build a website personally and install a blogging program, we can realize the dream of a webmaster (there are many well-known personal bloggers, and a single blog can dominate the Internet). When we build a website, we will definitely choose a considerate one. CMS does not require complex content management systems or forums that are difficult to operate and maintain. Currently, WordPress is mostly used in the mainstream, but many users don’t like it mainly because it takes up a lot of resources. ZBLOG, as an early veteran ASP program, is now also available in PHP version and is gradually being used in a small area.
If we build the ZBLOG PHP version in the APACHE environment, it is very simple to set pseudo-static rules in the background.
Article Directory Hide
First, set the ZBLOG PHP pseudo-static rules in the Apache environment
Second, ZBLOG PHP pseudo-static settings in Nginx environment
First, Apache environment settings ZBLOG PHP pseudo-static rules
Log in to ZBLOG PHP backend – Settings Management – Static Management Center
We can choose preset rules or write custom rules, then save and generate .htaccess in the root directory to complete.
Second, ZBLOG PHP pseudo-static settings in Nginx environment
Nginx and even pseudo-static rules may be a little more complicated, especially those that cannot be converted from HTACCESS to NGINX. Here Snail provides an available NGINX pseudo-static script, which we only need to put in the environment directory.
location / {if (-f $request_filename/index.html){rewrite (.*) $1/index.html break;}if (-f $request_filename/index.php){rewrite (.*) $1/index.php ;}if (!-f $request_filename){rewrite (.*) /index.php;}}Save the above script to the zblogphp.conf file. If we need to use the AMH panel, just put it in the corresponding directory and select it when adding the site.
PS: If it is added later, we need to /etc/init.d/nginx restart to restart the NGINX system after we complete the settings.
In this way, we can complete the use of ZBLOG PHP pseudo-static rules in the APACHE environment and NGINX environment.
Recommended site search: Korean cheap server, what is the server, qq proxy server ip, telecom ip proxy, Guangdong hosting high defense US server, address check by ip, bbs filing, Hong Kong cn2 Server, website registration,
发表评论