Supplementary question to the previous question
wolf
wolf 2018-06-27 10:52:12
0
4
1219

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

wolf
wolf

reply all(1)
无忌哥哥

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.

  • reply First of all, thank you for your attention. This is the Apache configuration file of my site. How to convert the Nginx configuration? I’ve tried all the online tutorials, but it still doesn’t work! ! !
    wolf author 2018-06-27 14:07:53
  • reply Just search the windows configuration nginx site and it will come out. There are many online.
    无忌哥哥 author 2018-06-27 14:18:51
  • reply Okay, thank you for your attention, I searched, but it’s not available! !
    wolf author 2018-06-28 15:04:48
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template