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)