RewriteEngine on RewriteCond % !^$
RewriteRule uploads/(.*).(php)$ ¨C [F]
RewriteRule data/(.*).(php) $ ¨C [F]
RewriteRule templets/(.*).(php)$ ¨C [F]
RewriteEngine On
RewriteRule ^list-([0 -9] )\.html$ /plus/list.php?tid=$1 [L]
RewriteRule ^list-([0-9] )-([0-9] )-([0 -9] )\.html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 [L]
RewriteRule ^([0-9] )\.html$ /plus/list /plus/view .php?aid=$1 [L]
RewriteRule ^view-([0-9] )-([0-9] )\.html$ /plus/view.php?aid=$1&pageno= $2 [L]
RewriteRule ^index\.html$ /default.php [L]
How to convert this static rule into Nginx’s static rule
无忌哥哥2018-06-27 11:35:14
You need to create an nginx configuration file for your site first. You can search the nginx configuration site, and then write your pseudo-static rules in the configuration file. The specific writing method can be found on Baidu.