some trouble with this temporary code.
The problem is that, after the first RewriteCond, the 2nd condition seems to be skipped and thus RewriteRule is never executed.
I need both of these conditions to be checked, and when both are true, RewriteRule should be executed.
The code works fine when I remove the line that has the 404 in it.
#for our perm short URL links
RewriteRule ^vampteam/u=(.*) /redir.php?u=$1
# the new temporary code
RewriteCond %{REQUEST_URI} ^/vampteam/404\.shtml$
RewriteCond %{REQUEST_URI} /u=(.*)$
#now rewrite the URL to include "vampteam" and thus fixing the file not found problem
RewriteRule . vampteam/redir.php?u=%1 [L]
I've tried to do it like this because I don't know when exactly my webhost is going to fix the nameserver path problem, and after it is fixed, I don't want this new code breaking redir.php
I could do some other solutions, but I am interested to see if this solution is possible.