Forum Moderators: phranque
RedirectPermanent / http://www.example.com/
Jim
Mod_rewrite and mod_alias work during the URL-to-filename translation phase of the Apache API. That is, they work after an HTTP request is recieved by the server, but before any content is served or any scripts are activated. Therefore, they have no effect on the 'content' of your pages.
mod_rewrite can change the URL by redirecting a request -- that is, by sending a response back to the browser that says, "That content has moved, ask for it again at this new URL" -- or it can rewrite a URL (change the server filepath associated with a URL), but it cannot change the URL 'seen' on your pages -- after all, the old link has alreay been 'seen' and has been clicked-on, so it's too late...
Apache 2 supports some output filters, but they're an inefficient way to do what you want.
Jim