我将如何让Apache区分大小写使用的.htaccess? [英] How would I make Apache case insensitive using .htaccess?

查看:724
本文介绍了我将如何让Apache区分大小写使用的.htaccess?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近从IIS切换到Apache和unfortionately我的一些环节有资本问题。我看到不少人在谈论如何重写URL以全部小写或全部大写,但我需要的东西,只是让Apache不区分大小写。使用的.htaccess这是可行的?

I recently switched from IIS to Apache and unfortionately some of my links have capitalization issues. I have seen quite a few people talking about how to rewrite urls to be all lowercase or all uppercase but I need something to just make Apache case insensitive. Is this doable with .htaccess?

推荐答案

添加

CheckSpelling on

你的的.htaccess 文件 当然使RewriteEngine叙述后

to your .htaccess file of course after enabling the RewriteEngine

所以最终code将

RewriteEngine on
CheckSpelling on

我想这是最好的,最安全的方法。

I guess it is the best and safest way.

AllowOverride none

AllowOverride All

你的的httpd.conf 文件中,允许.htaccess文件才能正常工作。

inside your httpd.conf file, to allow .htaccess files to work correctly.

这篇关于我将如何让Apache区分大小写使用的.htaccess?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆