热搜词
发表于 2020-12-18 02:14:13 | 显示全部楼层 |阅读模式
《江湖家居门户系统》开启伪静态的方法

nginx.txt文件内容:
  1. location ~* /themes\/.*\.(html|xml)$ {
  2.     return 403;
  3. }
  4. location ~* /system\/.*$ {
  5.     return 403;
  6. }
  7. if (!-e $request_filename) {
  8.     rewrite ^/attachs/demo/(.*)$ http://www.ijh.cc/attachs/zxdemo/demo/$1 redirect;
  9.     rewrite ^(.*)$ /index.php last;
  10. }
复制代码

《江湖装企营销系统》开启伪静态的方法
+--------------------------------------------------------------------------------------------------------------+
一、 先配置你的服务器(IIS/Apache/Nginx等)支持Rewrite功能,
二、 安装包中有对应服务器的rewrite规则 Apache(.htaccess)、Nginx(nginx.txt)、
     IIS6(ISAPI_Rewrite2.x:httpd.ini, ISAPI_Rewreite3.x,ISAPI_Rewrite3.htaccess)、IIS7(Web.Config)
三、 在网站后台 设置->网站设置 开启rewrite
+--------------------------------------------------------------------------------------------------------------+

nginx.txt文件内容:
  1. location /themes\/.*\.(html|xml)$ {
  2.     return 403;
  3. }
  4. if (!-e $request_filename) {
  5.     rewrite ^(.*)$ /index.php last;
  6. }
复制代码

全部评论0
回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|管理员之家 ( 苏ICP备2023053177号-2 )

GMT+8, 2024-7-2 00:18 , Processed in 0.161619 second(s), 22 queries .

Powered by Discuz! X3.5

Cpoyright © 2001-2024 Discuz! Team