The problem I'm attempting to solve is the fact that I've got a folder having a title which has funny capitalizations, e.g. TeStPage. I'd like all demands to my domain, in most versions of caps, redirect to that particular page.

I attempted an easy:

Redirect /testpage http://www.mydomain.com/TeStPage

But that crashed my website, since it stated 'Non-URL'.

How do you do .htaccess re-direct to deal with all capital cases to become rerouted to my /TeStPage url?

I looked Apache's documentation for that syntax and rules of .htaccess, but could not find lots of particulars. Can someone point me to some good tutorial/reference file I'm able to use to explore .htaccess instructions thorough?

Thanks.

Do this mod_rewrite rule:

RewriteEngine on
RewriteCond $0 !=TeStPage
RewriteRule ^testpage$ /TeStPage [NC,R=301,L]

Have you look into the mod_rewrite spec at http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html ?

Take for example the normal Wordpress URL rewrite, which redirects all demands that could indicat a non existing file/folder to index.php, passing within the original request URL:

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase / 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L] 
</IfModule>