我一直在玩弄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]