这是我的代码:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !kaomadmin
RewriteCond %{REQUEST_URI} !article
RewriteCond %{REQUEST_URI} !commentaire
RewriteRule ^([a-zA-Z0-9\-]+)/?$ page/page_url?url=$1 [L,QSA]
RewriteCond %{REQUEST_URI} !kaomadmin
RewriteCond %{REQUEST_URI} !commentaire
RewriteCond %{REQUEST_URI} !article/ajout
RewriteCond %{REQUEST_URI} !article/index
RewriteCond %{REQUEST_URI} !article/modification
RewriteRule ^article/([a-zA-Z0-9\-]+)/?$ article/article_url?url=$1 [L,QSA]
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule . index.php [L]
它适用于localhost,但不适用于我的任何在线网站...我看到必须将httpd.conf AllowOverride设置为all,但我没有该权限...而且我没有看到mod_rewrite on我的php_info ...也许我错过了什么?
我尝试了一些htaccess测试仪,它也有效!我认为我唯一的问题是服务器限制......任何想法?
提前致谢