cooldude832 Posted August 19, 2008 Share Posted August 19, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/120413-solved-making-this-case-insensative/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.