Apache使用.htaccess不区分大小写?

时间:2013-10-16 03:04:15

标签: apache .htaccess

如何使用.htaccess使Apache不区分大小写?

问题:如果我尝试使用大写字符串而不是小写字母来访问同一页面,则它无法正常工作。

我已阅读其他帖子但仍无法让它发挥作用?如果有人可以提供帮助,我将不胜感激! 我的.htaccess文件:

Options +FollowSymlinks
Options -Indexes
AddType text/x-component .htc
<IfModule mod_speling.c>
    CheckSpelling on
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [NC,QSA,L]
</IfModule>

1 个答案:

答案 0 :(得分:0)

您需要启用模块(mod_speling)才能运行...

假设您正在使用Ubuntu,请从命令提示符处运行:

sudo a2enmod speling
sudo service apache2 reload
sudo service apache2 restart
相关问题