0
mit .htaccess
看起来像这样。.htaccess Redict URLs没有文件扩展名
RewriteEngine on
RewriteRule !\.(js|gif|css|jpg|png|ico|txt|html)$ index.php [L]
它允许正常访问列出的文件扩展名的URL。所有其他请求都发送到index.php。
我该如何简化我的.htaccess,以便它允许所有文件请求,并且只请求没有文件扩展名的请求到index.php?
你的假设是正确的,第一个剪辑适合我!谢谢。 – danijar 2012-04-26 20:06:30