Forum Moderators: phranque
Welcome to WebmasterWorld!
It appears that you may be going about this backwards.
If you want to change the 'displayed URL' then you must change the links on your pages.
Once a visitor (person or robot) follows those links, and requests the new URL from your server, you can use mod_rewrite to change the internal file that corresponds to that URL, or you can redirect to a different URL. However a redirect requires that the client (browser or robot) re-fetch the desired content from the new URL, and that is inefficient. So, the proper way to do this is to correct the links on your pages.
The process will then look like this:
Link on page <a href="/example/">Link text here</a>
mod_rewrite code:
RewriteRule ^example/$ /example.html [L]
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim