Htaccess file match case insensitive restrictions in the htaccess above this block are being respected (e. htaccess file and paste it at the top of the existing file. html. htaccess RewriteRules, the standard [NC] flag or the (?i) modifier doesn't work as expected. Files in Windows are case insensitive, files on Linux are case sensitive. g. htaccess file for better security, redirects, and performance. If you have access to your domain DNS settings, you should be able to redirect your domain to your the desired location. Oct 11, 2016 · You need to take care of two aspects: first the case insensitive matching and second the case conversion to lowercase. html" "smalldog. Here’s a basic example of how you might set up a rule in your . The Basics of `-match` vs `-imatch` In PowerShell, the `-match` operator enables you to perform case-sensitive matching against a specified pattern. I'm now getting errors when trying to save css / templates or xslt files. As a result, SEO concerns must be addressed on many AEM Projects. Kind of like what WordPress does! All you have to do is add this code into your . After couple of 500 internal server errors and a lot of googling a lot of stack overflowing I'm Sep 7, 2010 · But be aware that the NC flag (case-insensitive matching) is not supported by lighttpd's mod_rewrite. SEO Best Practices This section Apache Replace BadBot with the actual user agent string you want to block. Use of the [NC] flag causes the RewriteRule to be matched in a case-insensitive manner. htaccess Regex Character Definitions The following table showcases the different regex characters available to you when dealing with a . htaccess Override: FileInfo Status: Base Module: mod_setenvif Compatibility: Apache 1. htaccess files only Sep 4, 2022 · When I use this code in . no indexing) so the file is being parsed. This behavior cannot be changed in WordPress itself. JPG files are both acceptable, for example. Search your domain registrar for DNS domain redirect settings. conf to prevent 404 errors from occurring. htaccess files to implement 301 redirects lets you execute complex patterns, like pattern-based redirects (redirects that automatically match and forward groups Free online HTACCESS redirect generator tool to create 301, 302, and advanced Apache rewrite rules. Oct 3, 2024 · The . Mar 9, 2020 · The . htaccess file and save it! Using an . html . The right way to fix this issue is to fix your broken URLs. htaccess file is used to create redirects more than just about any other function. htaccess you need to use RewriteMap directive which cannot be placed in . RewriteRule ^ /%1 [R=301,L]: This rule matches any URL (^) and redirects it to the URL without the . For example, the matching behavior of a rule can be made case-insensitive by the application of the [NC] flag: RewriteRule "^puppy. Dec 9, 2020 · Are URLs case sensitive? Learn how to redirect uppercase URLs to lowercase using htaccess or httpd. Of course, to match the entire string, the regexp can be changed into /^keyword$/. These types of issues can occur when using files created on or migrated from an operating system that uses a case-insensitive file system, such as Microsoft Windows. Apr 3, 2007 · Files and FilesMatch to target multiple files and using Regular expressions using . it's all lowercase, all uppercase, uppercase first letter etc), could you use url-rewrite in the application gateway to change the incoming url to the case sensitivity pattern your storage expects to see? Jun 9, 2023 · If hosted on a Linux server, files and directories are case sensitive. jpg" (had no pr Jul 28, 2025 · SEO (Search Engine Optimization) has become a key concern for many marketers. Apache’s mod_rewrite is one of the most powerful features of the NC|nocase Use of the [NC] flag causes the RewriteRule to be matched in a case-insensitive manner. Aug 3, 2010 · Htaccess Problem #6: Htaccess Settings Overridden by Another Htaccess File Multiple . It's quite broad, but should match the examples you gave. Jul 6, 2024 · To achieve case insensitivity for Cyrillic characters in Apache . Sep 16, 2025 · Learn how to find, edit and optimize your WordPress . Such commands are treated by Apache as directives to complete the following: start or stop processing certain rules and conditions process rule or condition as sensitive or case Sep 12, 2019 · Recently I was forced to migrate from cPanel to CentOS Web Panel and there is a case-sensitive issue with file names, so "filewhatEver. htaccess or httpd. Aug 22, 2017 · Simply make all of your URLs lowercase, period. You'll need to change all of your redirects from this: Dec 20, 2022 · Hi, Sorry for the trouble. This article covers the basics, including the regex case insensitive flag and character class. [NC] makes matching case-insensitive, but does not convert the result. htaccess file in an app’s web root directory to apply the file’s directives to all requests for the app. Typically all . That is, it doesn't care whether letters appear as upper-case or lower-case in the matched URI. The actual folder name is called example in lower case but either one works. htaccess files may be read and applied if a web request is made to a file in nested directories. conf' from being uploaded. htaccess file for web development. Some notes about the regex used in this redirect: ^ – denotes the beginning of the requested URI (. You can test against various strings, often from the environment using the form % {VARNAME}. * Learn how to modify your `. Any file after the directory name is lost. htaccess` file, focusing on identifying the specific user-agent strings associated with Facebook bots and constructing the appropriate directives to effectively manage their access to the website. Jul 23, 2025 · Also, before matching the characters, we can convert both the characters to lower case to ignore the case. Whether you’re a WordPress developer In the . matches a literal dot instead of any character (the special meaning of a dot in regular expressions) This rule Matches a request Dec 23, 2020 · This naturally makes the initial match case-insensitive - which shouldn't be necessary. May 1, 2024 · You can define rewrite rules in your Apache configuration files (such as . This makes it case insensitive by not allowing any uppercase to be used and transparently changing the url to all lowercase. The article will further elaborate on potential considerations and best practices for May 16, 2013 · Use of the [NC] flag causes the RewriteRule to be matched in a case-insensitive manner. htaccess files in the path between the website’s root directory and the requested file’s directory will be read and applied in order. Simply precede the pattern with “ (?i) ” (without the quotes). After couple of 500 internal server errors and a lot of googling a lot of stack overflowing I'm Nov 3, 2021 · It’s an inherent characteristic of the file system (i. htaccess files, you've likely come across rewrite rules. If you are fine without it, you could simply use the following rewrite rules: I'm struggling with mod_rewrite and . html" [NC] For more details on the available flags, their meanings, and examples, see the Rewrite Flags document. htaccess :) Any help will be appreciated. Grasping this distinction is crucial when you're working with string comparisons or validations. Feb 10, 2021 · To implement such redirect using mod_rewrite and . ] instead of . myurl. In the example below, any request for an image file will be proxied to your dedicated image server. It’s highly recommended that you understand the need for and how flags work when using rules with the . Jun 28, 2024 · The line terminates with a “no-case” [NC] flag, making the pattern-match case-insensitive and increasing its effectiveness. htaccess file (a text file for configuring aspects of websites hosted on Apache servers) is a useful way to permanently redirect one URL to another in a way that preserves ranking authority. htaccess and Nginx, covering single-page redirects, complex query string handling, and more. Jun 22, 2018 · This question already has answers here: rewrite uppercase url to lowercase url htaccess (2 answers) Understanding Apache mod_rewrite Flags: A Guide to Redirects and Rules If you've worked with Apache web servers and . Jan 7, 2025 · The assumption here is that HTAccess files are the only files that begin with “. The [NC, L] flags ensure that the match is case-insensitive and there is only one match. htaccess files in subdirectories to undo any associations inherited from parent directories or the server config files. These hyperlinks are broken, and the improperly coded HTML files will not work. Then in the second line, the RewriteRule simply denies access to any matching requests. htaccess to lock down sensitive components including your wp-config. htaccess file works on the client side of the website but in the Umbraco backend its causing problems when saving in the settings and developers tabs. What is Regex? Before going further, RegEx is short for a regular expression – it is defined as a specific string of text used to describe a search pattern. Learn the basics of how to create redirects with the . Mar 9, 2016 · I found How do I do a case-insensitive mod_rewrite redirect to the same URL (mod case)? which recommends RewriteMap insensitive tolower: but I don't exactly know if/how this would work for me. htaccess file and upload it back to your server if necessary. g ' extensions. Dec 23, 2020 · This naturally makes the initial match case-insensitive - which shouldn't be necessary. Nov 4, 2015 · I've noticed however that if there is a file with a lowercase or mixed case extension of CSV, it will be ignored by the rule and displayed. htaccess` rules to make specific words case insensitive using the `NC` flag, ensuring your URL rewrites work regardless of capital Apr 3, 2025 · The . The NC (nocase) flag on the RewriteRule ensures that it would match TestDirectory or TESTDIRECTORY etc. The time now is 04:52 PM. However, one common . This allows you to use conditions to limit the scope of rewrite rules. Jun 10, 2013 · Furthermore RewriteMap can only be used in the server configuration or virtual host context but not in a . Otherwise the link to HTML file download me the file instead of show it to browser. However I have moved the files onto a ubuntu aws instance and it doesn't work there. Feb 24, 2015 · I moved the . Thus, by simply matching these first three characters, all HTAccess files — and only HTAccess files — will be protected from external access. But in my case, i need to remove the AddType application/x-httpd-php . html and . ^ matches from the beginning, $ matches till the end and \. conf I have installed apache on Mar 15, 2019 · Apache case Insensitive Rewrite Rule for htaccess Posted by Bhagwat Singh March 15, 2019 For example, the matching behavior of a rule can be made case-insensitive by the application of the [NC] flag: RewriteRule "^puppy. Jan 17, 2014 · To make the filenames case insensitive, you need to make sure mod_speling is on and you need this directive: CheckSpelling On To get rid of the /r/ directory, try changing your rules to: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}/r/$1\. For the RedirectMatch directive, here’s how to do it. NGINX (UNIX-based): It tends to be case sensitive. Aug 3, 2017 · if i understand well you are looking for case insensitive redirect ? This allows . [NC,END] signifies a case-insensitive match and stops processing once this rule matches. Unfortunately, the site is in test/QA phase so I cannot give the actual URL, however, as an example: Sep 7, 2010 · But be aware that the NC flag (case-insensitive matching) is not supported by lighttpd's mod_rewrite. *)$ /r/$1. php, etc. html$ search. You'll need to change all of your redirects from this: Apr 5, 2022 · This tutorial will teach you how to use specific RegEx characters specific to . All matching requests are redirected to the same file located in /new-directory/. If the set has only one unique element, it prints "equal" otherwise, "unequal". I did read that you might need to change something in the httpd. Includes real examples, troubleshooting tips, and a free redirect generator. The docs for the RewriteCond directive include a section on the flags that can be used with this directive. php [L,NC,NS,QSA] ^search\. htaccess files to change the scope of other configuration directives. NET, Rust. htaccess file allows you to control the behavior of the Apache web server on a per-app and per-directory basis. htaccess to public_html and I can see same internal server error . ht ”. By default, WordPress is case-insensitive when it comes to permalinks, so it will treat /foo and /Foo as the same page. jpg and . This document describes how to use configuration section containers or . RewriteCond %{QUERY_STRING} ^rest_route. htaccess All I need to do is make my URLs case in-sensitive. May 1, 2024 · But there are some workarounds: Apache web server does not natively support case-insensitive file handling on case-sensitive file systems like those commonly used in Linux. RunCloud All times are GMT -5. htaccess and I am getting error only if the case is not matching. Feb 8, 2020 · Learn how to perform case-insensitive String matching in Java. Likewise you can edit the file types to whatever is required. Oct 4, 2023 · Learn how to ignore case sensitivity in programming using regex. Using strong pattern matching, this technique prevents external access to any file containing “. To illustrate, this code will prevent acce Jul 16, 2021 · I tried adding this . In most cases, flags can be found at the very end of RewriteCond or RewriteRule commands. Complete step-by-step guide for beginners. Looking at the history of the file over time, we only kept adding new patterns but never cleaned them up. wp-config. 3 and above; the Request_Protocol keyword and environment-variable matching are only available with 1. Then I removed the . conf I have installed apache on For example, the matching behavior of a rule can be made case-insensitive by the application of the [NC] flag: RewriteRule "^puppy. <Directory platform/courses/*> Jan 22, 2023 · In this example, the RewriteRule command is used to specify that only numbers are valid in place of any path in the URL. Unsafe assumptions aside, this method also relies on a case-sensitive match in order to work. NC|nocase Use of the [NC] flag causes the RewriteRule to be matched in a case-insensitive manner. conf file, but instead uses its own apache2. G[a-b]. (?:CSV|csv)$" (which I'm not sure would even work, and doesn't cover all bases) Jul 1, 2024 · Pattern-matching with case-insensitivity increases the scope of your . The SetEnvIfNoCase is semantically identical to the SetEnvIf directive, and differs only in that the regular expression matching is performed in a case-insensitive manner. php file and the numbers are used as the value for the id variable. htaccess file in the document root directory the URI path without the leading /: RewriteCond $0 !^wp-content/uploads/ RewriteCond %{REQUEST_FILENAME} !-f The expires header is an HTTP header that indicates whether it is possible to obtain information on request from the browser cache or if you need to access the server since the page option in the cache is already outdated. Jun 22, 2017 · The focus of this article is to review the specific RegEx character definitions when working with . But as it obviously doesn’t work, try not to match the path prefix of the full URI path but only the remaining path without the contextual per-directory path prefix, in case of the . Setting up case-insensitive URLs might be something you want to do. htaccess RegEx Characters Explained The following table showcases different regex characters that Mar 17, 2024 · The [NC] flag makes the comparison case-insensitive, meaning it will match index. Oct 26, 2021 · I'd like to do 2 things with my . May 12, 2025 · Learn how to create . However, one specific rule is only executed if I remove another specific rule, regardless of how I order the two rules. Sep 24, 2021 · This matches exactly the string "article/", followed by at least one letter (case insensitive due to the NC flag), followed by zero or more of anything. Jan 7, 2025 · Using Apache’s Rewrite Rules in your . Wide range of options and unique features. /sub-directory/file. Jun 3, 2025 · Implementing a 301 redirect in your . Jan 26, 2018 · Why are not testing apples|bananas in URI at the RewriteRule stage? Mar 11, 2012 · How can I make the following regex ignore case sensitivity? It should match all the correct characters but ignore whether they are lower or uppercase. Domain URL’s aren’t case sensitive The mod_speling module enables your web site to process filenames that vary in their case. This guide will walk you through using . I want all Use . Create a . It helps to match, locate, and manage text. the regex is right so it must be the syntax for Apache 2. php file, wp-admin directory, and even control access to your media files and other assets. May 25, 2025 · The following sections will delve into the practical methods of implementing such restrictions within the `. If there is a mismatch, we start the same process for the next index of the text. htaccess file for SEO. It will help prevent people from getting a 404 error if a few letters are wrong, or if they use capitalization incorrectly. conf, but free hosting doesn’t let you access that correct? Feb 20, 2023 · An idea I had: Maybe there's a creative method to match case insensitive in the destination via RewriteCond, and if that matches then simply get that variable (which then has the string with the exact capitalization) into the replacement part of the RewriteRule. 4 htaccess. However, knowing these defaults isn’t enough. Post by Stefan I would like to URLs on my domain case insensitive. HTA”, or any case-insensitive combination thereof. Yes, redirects are case-sensitive in the context of . com/products to https://example. test(source) and 2) resorting to a regexp to test something as simple as case-insensitive string equality is not at all very efficient. /sub-directory/File. htaccess files. Aug 30, 2015 · Use of the [NC] flag causes the RewriteRule to be matched in a case-insensitive manner. If the HTML file does not exist, the rule will not match, preventing a loop. htaccess file or Nginx configuration, you can easily create redirects to handle URL changes, enforce HTTPS, or switch domains without losing search engine rankings. htaccess files on Apache. If the case sensitivity of your files follows a pattern (i. I knew if was too good to be true. They provide protection for: - Accessing PHP Dec 17, 2021 · The L flag tells Apache to not process any other rules in the . How do I do that using htaccess? Nov 29, 2018 · Problem/Motivation Drupal's . htaccess file for WP to make the site case insensitive, by adding the line SpellChekcing = On, but that didn't work. . php ” file, you can get the name using the following code: Feb 21, 2019 · to my apps . Apr 8, 2024 · ( [a-zA-Z\s-]+) This regular expression will match all alphabets, including multiple words, letters, spaces, and hyphens. "RewriteCond". I have been toying with several solutions. Does this syntax look correct? *edited to actually ask a question How I can make a robust permanet redirection from a link like https://example. Simple case, probably two lines in . You need to tell Apache to append the query string (QSA = Q uery s tring a ppend) RewriteRule ^search\. com/mypages/Page1. This path is then redirected to the index. htaccess file is an Apache web server configuration file that controls access and behavior for its directory and subdirectories. htaccess file is an effective way to handle domain redirection and ensure users are directed to the correct URL. Our Htaccess Redirect Generator helps you easily create Apache . Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/. 🚧 Important You must have root access to the server to follow the procedures described Jan 7, 2010 · I need to make accessing directories on my server case insensitive. html is strictly different to FOO. Then in the “ user-by-name. com/newPath The redirection should work case insensitive Jun 28, 2024 · Here we are redirecting all requests for any HTML or PHP files located in /old-directory/. htaccess and web. htaccess files to configure Apache A . conf) to redirect or rewrite requests regardless of the case used in the URL. NC This flag will make the match case insensitive. Some technical details Advanced users may be interested in knowing how URLs can be case insensitive even though Unix servers use a case-sensitive file system. Apache . php, Index. A URL’s . These rules, powered by mod_rewrite, help in redirecting URLs, rewriting paths, or blocking access — all without touching your actual file structure. htaccess redirect generator. Discover best practices for case insensitivity in JavaScript, Python, and PHP. htaccess code, but it didn’t work after clearing cache and reloading. Oct 21, 2025 · The humble . Although most HTTP servers support the HTTP specification that defines URLs as case-sensitive, some HTTP servers treat URLs as not case-sensitive. For instance, another naughty bot I encountered recently identified itself as “trendkite-akashic-crawler”. Using casefold () casefold () method in Python performs a case-insensitive comparison that accounts for locale SetEnvIf directive Syntax: SetEnvIf attribute regex env-variable [= value] [env-variable [= value]] Default:noneContext: server config, virtual host, directory, . I have a number of RewriteRules in my . html would be two different files. The match is case-insensitive, so that . The extension argument is case-insensitive and can be specified with or without a leading dot. pdf -f RewriteRule ^(. Whether you are moving pages, changing domains, or need to force HTTPS, you can generate the correct rules without writing code manually. NOTE: FilesMatch should be used instead of Files when dealing with multiple files. htaccess file, the case insensitive URL's still resolve as Wordpress 404's instead of actually resolving. This header contains the date and time until the page is available in the browser cache. htaccess with another . Some people said we can modify the . and the RewriteCond directive prevents a redirect loop by checking that we are not already at testdirectory via a case-sensitive match. htaccess file on https://example. *) – matches any character (or no characters) \. htaccess file is your first line of defense – a powerful but often overlooked security tool sitting right in your WordPress installation. This guide will show you how to use . hta”, “. If you are using WordPress, for instance, you should copy this . Generate rules for URL redirection, domain changes, security features and performance optimization. Feb 6, 2025 · Learn how to use the 'i' flag in JavaScript Regular Expressions for case-insensitive matching, with practical examples and detailed explanations. htaccess file to handle case insensitivity: Code: RewriteEngine On RewriteMap lowercase int:tolower By default, Web servers are expected to be case-sensitive. config files provide reasonable protection for sensitive files from prying eyes. htaccess redirects without breaking your site. the . Conversely, `-imatch` is the operator designed for case-insensitive matching. RewriteCond %{HTTP:X-Forwarded-Proto} !https: This line is another condition that checks if the request was not made over HTTPS. htaccess code: <IfModule mod_rewrite. htaccess file to redirect all capitalized permalinks to their lowercase counterparts. The [NC] flag makes the match case-insensitive, and the [F,L] flags indicate that the request should be forbidden and stop processing further rules. c> RewriteMap lc int:tolower RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST Thank's for this solution. This guide provides step-by-step examples of common redirect techniques for both . This is due to the limitation in Apache's handling of Unicode characters, specifically Cyrillic characters, for case-insensitive matching. To do this with a plugin, you can use a plugin like “Force Apr 5, 2022 · This tutorial will teach you how to use specific RegEx characters specific to . htaccess file I restrict direct access to files but at the same time I cant access them with HTML code. Apr 13, 2018 · Note: You can merge this . com I want all file paths to not be case sensitive. No coding knowledge required. htaccess file, its importance in controlling access rights, enhancing security, and optimizing website performance with in-depth examples and tips. htaccess. You can't match the query string with a mod_alias RedirectMatch directive, you need to use a mod_rewrite RewriteRule (as above) to match against the query string (in order to confirm the query string is empty). This means that if you have a URL with uppercase letters and you try to redirect it using a lowercase URL, the redirect will not work unless it is specifically set up to be case-insensitive. However, this only redirects to the directory. May 14, 2010 · CodeIgniter Forums Archived Discussions Archived Development & Programming Make url case insensitive Directives in the configuration files may apply to the entire server, or they may be restricted to apply only to particular directories, files, hosts, or URLs. . php. Professional Apache mod_rewrite Rewriterule . May 25, 2025 · The Importance of Case-Insensitive String Comparison In the world of programming, strings are the building blocks of countless applications, from simple text manipulation to complex data processing pipelines. Mar 2, 2024 · Here are some examples of server types and their default URL case sensitivity: Apache (UNIX-based): By default, it’s case sensitive. Apache's rewriting module provides the NC flag for the first aspect and a somewhat more complex approach to the second one: Apr 15, 2009 · Linux - Server This forum is for the discussion of Linux Software used in a server related context. but www. pdf [L] May 6, 2021 · So it's not blocking e. www. There is FilesMatch (Apache) and a rewrite rule (IIS) that block accessing certain files based on a file name match. Mar 9, 2021 · So you can guess which files we are matching here: PDF, ZIP, MP4, OGV, and WEBM, all case-insensitive. Fortunately, Apache makes it easy to declare case-insensitivity with RedirectMatch. Nov 14, 2013 · Don't think there's a way to make the Redirect directive (part of mod_alias) case insensitive, but there's a mod_rewrite flag that you can use. Any upper case is converted to lower case by redirecting to the lower case equivalent. Feb 11, 2024 · This condition is crucial for loop prevention because it ensures that the rewrite rule is only applied if the corresponding HTML file exists. htaccess to redirect multiple domains to a single primary domain, whether you prefer including or excluding the www subdomain. This document first describes some SEO best practices and recommendations on an AEM implementation. 7 and later; use in . However, you can achieve case-insensitivity in Apache through various workarounds: mod_rewrite: This module can be used to rewrite URLs in a case-insensitive manner. If this is required then you potentially have a duplicate content issue, since foo. So you need to define the rewrite map there. Currently all of my files and folder start with a capital letter. htaccess redirect rules for your website. Jul 15, 2025 · Explanation: This code converts all strings in the list to lowercase for case-insensitive comparison, stores them in a new list b and checks if all elements are identical by converting the list to a set. Save the Changes: After adding the code, save the . htm row from . htaccess RegEx Characters Explained The following table showcases different regex characters that Sep 24, 2021 · This matches exactly the string "article/", followed by at least one letter (case insensitive due to the NC flag), followed by zero or more of anything. htaccess file, if it exists. htaccess -- only in server config / VirtualHost context. Apr 23, 2024 · The [NC] flag makes this condition case-insensitive, meaning it will match www, WWW, etc. htaccess redirect rules. jpg" is not being found in a url "filewhatever. * [NC]: This condition checks if the query string of the request starts with rest_route (WordPress Rest API). php -->working fine. Feb 4, 2019 · Since the server was windows, and case-insensitive, it was simply forgiving this and everything would function fine regardless. html suffix (/%1). However, you can use a plugin or modify your . operating system) being used. – matches a literal dot The Basics of `-match` vs `-imatch` In PowerShell, the `-match` operator enables you to perform case-sensitive matching against a specified pattern. html$ is a regular expression matching a literal search. So I suspect it is something to do with the webserver. It allows for per-directory settings without modifying the main server configuration. Then, this document takes a deeper dive into some of the more complex implementation steps raised in the first section. Matching multiple user agents You can use a simple regular expression to match multiple user agents. ). test(source), but 1) if keyword is not a constant, you'd need to do new RegExp('^' + x + '$'). When working with textual data, it‘s common to encounter the need to compare strings for equality, search for specific patterns, or perform other operations. Using . e. Any page to page url rewrite. Now that the files have migrated to a case-sensitive file system. com/mypages/page1. htaccess file of Apache, RewriteCond rules are used to define conditions for rewrite rules. htaccess file. php, on the other hand, is a core WordPress file containing your database credentials, security keys, and other crucial WordPress-specific settings. How do I make this case insensitive? I hope it doesn't come down to "\. Microsoft IIS (Windows-based): Traditionally, it’s case insensitive. php --> >'file not found error' May 6, 2024 · [NC] makes text matching case insensitive You can get a basic string comparison by prepending = (or, by implication, !=), otherwise you get a regexp match (where you probably want to use [. Here's the rule which Feb 11, 2024 · The [NC] flag makes the match case-insensitive. There are fundamental technical differences between the two operating systems which you can’t just turn on or off. 3. NOTE: A lot of the posts I read talk about httpd, and that mislead me, I was told, Modern Apache does not use the httpd. The answer is that we use an Apache Web server module called mod_speling (sic), which “fixes” URL requests that don't exactly match an existing file. This condition ensures that the rule only applies when the request is specifically for index.