Surely .htaccess files are only for security issues, not for redirecting things?
I think you need to either make changes to a configuration file somewhere (like httpd.conf, i think it is), or just stick some code in the php script (why not use a traditional url redirect? are we racist against url redirects? they work fine, why ignore them. I used one only the other day - it works brilliantly, as part of a sequence, by the end of which a user's cookies are fully loaded into the gun of commercial traffic).
I can't see any reason to believe .htaccess files can do anything similar to what you mention:
http://httpd.apache.org/docs/1.3/howto/htaccess.html
Try this...
<meta http-equiv="refresh" content="0;url=http://example.com/" />
Surely you can get the php script to put the appropriate link in where example.com/ is?
That's a few moments work. Doing it deeper down would definitely involve configuration files. And if it's that important, why not, but if it isn't, what's wrong with a meta refresh tag (which I apparently called a url redirect tag, earlier - just goes to show what it's primarily used for).
__________________
I acknowledge Parker out of Thunderbirds and Glaxo Industries.
|