我一直在玩弄sNews CMS,它是目前为止我尝试过的更好的轻量级内容管理系统之一,至少在速度和尺寸方面都是如此。但是,作为不知道如何编写.htaccess文件的人,我想知道如何在自己的页面上实现漂亮的URL(即events.php),而不会影响CMS的功能。.htaccess和sNews的漂亮网址CMS
的是的.htaccess:
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
#RewriteBase /sNews17
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]