-1

I am working a website which is deployed on a linux server. I have small changes to do on that. I have folder read. The requirement is that if i enter the url localhost:80/tom/Read or ../READ or /read it need to navigate to read.php inside a read folder. I am struggling from 2 days. Please possible do the needful.

Thanks

Fred Foo
  • 355,277
  • 75
  • 744
  • 836
sonorita
  • 771
  • 2
  • 8
  • 20
  • Looks like you're looking for some URL rewriting technique. Apache does that quite well. – Fabien Feb 11 '13 at 14:17
  • Hi Fabien... Can u describe it... I am new to linux servers.. How can i achieve Url Rewriting – sonorita Feb 11 '13 at 14:20
  • Possible duplicate of [How do I make URLs case insensitive in Linux server](https://stackoverflow.com/q/14814419/608639), [Case Insensitive URLs with mod_rewrite](https://stackoverflow.com/q/1998156/608639), etc. – jww Nov 05 '18 at 17:19

2 Answers2

1

You could point the Document Root at a path upon which you mount a case-insensitive filesystem (FAT32 for example), or use something along the lines of mod_spelling.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
  • 1
    Another option is to use a RewriteMap rule, such as laid out at [this](http://stackoverflow.com/questions/2923658/convert-to-lowercase-in-a-mod-rewrite-rule1) SO question. – TML Feb 11 '13 at 14:18
1

You could write a htaccess to lowercase stuff

http://www.chrisabernethy.com/force-lower-case-urls-with-mod_rewrite/

s.lenders
  • 1,119
  • 6
  • 21