Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Case sentitivity issue Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
wanto
Newbie
Newbie


Joined: 20 April 2008
Location: United States
Online Status: Offline
Posts: 12
Posted: 25 July 2008 at 8:22am | IP Logged Quote wanto

RewriteEngine on
RewriteBase /Abc-Xyz/

RewriteMap mapfile txt:mapfile.txt
RewriteMap lower int:tolower
RewriteRule ^pre  mapurl.asp?ID=${mapfile:${lower:$1}}

The mapfile contains

aaa 1
bbb 2
ccc 3

- When a user types http://www.domain.com/Abc-Xyz it works
- When a user types http://www.domain.com/abc-xyz it works

- When a user types http://www.domain.com/Abc-Xyz/preAAA it works
- When a user types http://www.domain.com/Abc-Xyz/preaaa it works

- When a user types http://www.domain.com/abc-xyz/preAAA it does not work
- When a user types http://www.domain.com/abc-xyz/preaaa it does not work


I am having problems with URLs to work when the user types incorrect case in the directory specified in RewriteBase. /Abc-Xyz is actually a directory under the website root

Please help.

Thanks

Back to Top View wanto's Profile Search for other posts by wanto
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4146
Posted: 28 July 2008 at 2:00am | IP Logged Quote Anton

Please try to use this config:

RewriteEngine on
RewriteBase /Abc-Xyz/

RewriteMap mapfile txt:mapfile.txt
RewriteMap lower int:tolower
RewriteRule ^pre(.+)  mapurl.asp?ID=${mapfile:${lower:$1}} [NC,L]



__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
wanto
Newbie
Newbie


Joined: 20 April 2008
Location: United States
Online Status: Offline
Posts: 12
Posted: 28 July 2008 at 5:14am | IP Logged Quote wanto

Hi Anton,

I tried your suggestion. It does not work. Pls. let me know.

Thanks

Back to Top View wanto's Profile Search for other posts by wanto
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Online
Posts: 578
Posted: 28 July 2008 at 5:43am | IP Logged Quote Vyacheslav

Hi wanto.
Please provide you rewrite.log. You can get it only if your httpd.conf file contains this string:
Code:
RewriteLogLevel 9


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum