Ok, I'm at my last drop of patience wiht the modRewrite.
I was helped earlier, but I just can't figure out what the ... I'm doing wrong.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule ^/([A-Z]{8}) http://mydomain.com/mypage.php?code=$1
Here's the basic script what needs to happen.
A user clicks on a link that has domain and 8 char long id in CAPS:
http://mydomain.com/ABCDEFGH
The rewrite needs to pick it up and convert the ID into a var ($code).
I think I'm missing that condition -- redirect if the domain is followed by 8 alpha chars and all caps.
That's it!
Naturally since I'm messing with the root of the site I'd like to put something that would tell the script not to do anything if a page actually exisst. Found something like this, that I hope would do the trick:
# [do not apply rules when an existing file is requested]
RewriteCond %{REQUEST_FILENAME} -f
# "do nothing (no substitution)" and last rule
RewriteRule ^.* - [L]
Deep in the woods...... H e l p ! ! !