What is the simplist way to do change http://username:[EMAIL PROTECTED]/protected/archive/$file to http://miningstocks.com/protected/archive/$file where $file is a variable (indicating any file in that directory or any subdirectory)?
That's entirely an Apache question, not PHP... unless of course you were hoping that $file was a PHP variable (which can't be done, because the rewrite happens before PHP parses anything).
Try an Apache list, and modify your query to:
rewrite: http://username:[EMAIL PROTECTED]/protected/archive/(.*)
to: http://miningstocks.com/protected/archive/$1
The rewrite is EASY, but I've never dealt with domains and http auth stuff sorry.
Justin French
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php