我在xampp上复制了工作代码,然后将其粘贴到live .htacces文件中,现在我收到500服务器错误。
错误日志显示为RewriteRule: unknown flag 'QSD'
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteRule ^/?inbox/([\d.a-zA-Z]*)$ /inbox?pg=$1 [QSD,L]
RewriteRule ^/?sent/([\d.a-zA-Z]*)$ /sent?pg=$1 [QSD,L]
RewriteRule ^/?deleted/([\d.a-zA-Z]*)$ /deleted?pg=$1 [QSD,L]
RewriteRule ^/?view/([\d.a-zA-Z]*)$ /view?content=$1 [QSD,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [QSA,L]