Home  >  Q&A  >  body text

Supplementary question to the previous question

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

wolfwolf2211 days ago1063

reply all(4)I'll reply

  • 无忌哥哥

    无忌哥哥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.

    reply
    0
  • wolf

    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 · 2018-06-27 14:07:53
    无忌哥哥

    Just search the windows configuration nginx site and it will come out. There are many online.

    无忌哥哥 · 2018-06-27 14:18:51
    wolf

    Okay, thank you for your attention, I searched, but it’s not available! !

    wolf · 2018-06-28 15:04:48
  • Cancelreply