Jump to content

Archived

This topic is now archived and is closed to further replies.

Dragosvr92

Turn Apache case-insensitive

Recommended Posts

I think my eyes are going to fall out from all the searches ive made to find a solution for this that works on a shared host.

 

I tried this... but it doesnt work.

RewriteEngine  on
CheckSpelling on

The only Rough solution i got is to do the case manually with an internal redirect. Like this.

RewriteEngine on
RewriteBase /~quux/
RewriteRule ^foo\.html$ bar.html

Is there absolutely no way to mention [a-z] and [A-Z] into a RewriteRule to get this done?

 

I find it terribly stupid from Apache not to provide a simple solution for this.

 

 

 

Share this post


Link to post
Share on other sites

Solution to what?

What....? Whats unclear to you?

.......Solution to specify the case like in the example i gave.

RewriteRule ^foo\.html$ FoO.html

Share this post


Link to post
Share on other sites

Try this:

I think my eyes are going to fall out from all the searches ive made to find a solution for this that works on a shared host.

Solution for what?

 

The only Rough solution i got is to do the case manually with an internal redirect.

What case? Filename, okay, but what about the filename case?

 

Is there absolutely no way to mention [a-z] and [A-Z] into a RewriteRule to get this done?

Get what done?

 

I find it terribly stupid from Apache not to provide a simple solution for this.

SOLUTION FOR WHAT?

Share this post


Link to post
Share on other sites

Okay, is it normal around here for moderators to act unknowing and troll others?

 

I am talking about making urls Case-Insensitive. A solution to. THAT ! Is it clear now?

 

Go get some sleep if you are tired.

Share this post


Link to post
Share on other sites

 

 

Okay, is it normal around here for moderators to act unknowing and troll others?

No. To be honest it wasn't clear in your first posts what solution you were after. My response would of been the same.

Share this post


Link to post
Share on other sites

In my posts, yes, you may be right. But the topic title made it clear in my opinion.

Share this post


Link to post
Share on other sites

If you want your rewrite rules to be case insensitive then apply the NC flag

RewriteRule ^foo\.html$ bar.html [NC]

Share this post


Link to post
Share on other sites

No, i wanted to just disable the case sensitivity.

 

There doesnt appear to be a way to do this, so i just turned to use something rough like this..

RewriteRule ^fIle\.html$ FiLe.html [L]

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.