Does Apache rewrite rule automatically change the URL of all pages without editing links?
I tried rewriting Apache rule from .htaccess, but nothing happened, so I'm wondering if I need to edit the links.
The rewrite rule is generally used to rewrite request headers, and to forward requests to other back-end servers based on patterns and regular expressions, and is not (I don't think it can be, but its kind if super powerful, so who knows... ;-) used to rewrite the body content.
You can think of mod_rewrite as a tool to map the external string http://myhost.com/some/path/here onto some internal file
If you want to rewrite links and HTML strings in the body text there is a apache module called mod_substitute which is useful for that. If you have an old apache, there are other mod_replace and mod_perl/
If you want to replace, delete or modify headers or cookies, mod_headers is a good place to look.
(However there is some cross over between these various modules, so its likely you you would want to be more clear about your requirements in order to get a better answer)
Perhaps you forgot to include the all-important
mod_rewrite won't change links inside the page. mod_substitute will... but you better make sure the content doesn't get compressed, as mod_substitute doesn't know to decompress it (you could use mod_header to remove any Accept-Encoding request header perhaps). I never had particularly good experiences with mod_substitute.