蔷薇525 发表于 2017-4-3 12:44:00

.htaccess 用于将所有页面请求导向 index.php页面

  用于将所有页面请求导向 index.php页面,一下是sNews CMS.htaccess 文件
  <IfModule mod_php4.c>php_value session.use_trans_sid 0</IfModule><IfModule mod_security.c>SecFilterEngine OffSecFilterScanPOST Off</IfModule>RewriteEngine On#RewriteBase /sNews17RewriteCond %{REQUEST_FILENAME} -fRewriteRule ^(.*) $1 RewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php?category=$1
页: [1]
查看完整版本: .htaccess 用于将所有页面请求导向 index.php页面