西数超哥博客
运维经验教程分享

anwsion系统伪静态设置

如果是你安装在网站根目录下:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>

如果你是安装在:您的域名/ask/这样的目录下面,对应的配置文件分别为:

<IfModule mod_rewrite.c>

RewriteBase /ask/

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule !\.(js|jpg|ico|gif|jpeg|bmp|png|css)$ /ask/index.php

</IfModule>

赞(0)
声明:本站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,若涉及侵权请及时告知,将会在第一时间删除。本站原创内容未经允许不得转载:西数超哥博客 » anwsion系统伪静态设置