Jump to content

[SOLVED] Making this CaSe InSenSative


cooldude832

Recommended Posts

I guess NC has to be first for it to work solved :)

 

 

Since we don't have a regex in general I posted this here

 

I have a mod rewrite for my site that allows it to rewrite some urls for clean urls

 

example

http://www.mysite.com/php/mysql/

is rewritten to

http://www.mysite.com/index.php?Page_Request=php&substr=mysql

the substr can grow so it can be mysql/mysql_num_rows for example.

 

the mod rewrites i have are (1 for php, mysql and xhtml)

RewriteRule ^(php+)(.+)?$ index.php?Page_Request=$1&request=1&sub_string=$2 [QSA,L, NC]    

RewriteRule ^(mysql+)(.+)?$ index.php?Page_Request=$1&request=1&sub_string=$2 [QSA,L, NC]  

RewriteRule ^(xhml+)(.+)?$ index.php?Page_Request=$1&request=1&sub_string=$2 [QSA,L, NC]  

 

The problem is I want it to be case insensative on the php mysql and xhtml part of it (the rest is going to just get pushed via get to the php processor so I don't care about its case)

so urls like

 

http://www.mysite.com/pHP/mysql/

is rewritten to

http://www.mysite.com/index.php?Page_Request=pHP&substr=mysql

 

 

I thought NC on the rewrite would do it but I realize the regex needs to have it to match (the way its written it fails to match  pHP or MySQL thus I get 404 errors.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.