Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: mack
To catch airagency and replaced it with airspace
If you need a new URL, then use that new URL in the links in your pages.
It is links that 'define' URLs.
If the internal filename on the server is not changing, theh use a rewrite as that will connect the URL request used out on the web, with the actual filename used inside the server, without revealing what that filename actually is.
If you have a new URL to replace an old URL, then use a redirect to force requests for the old URL to make a new request for the new URL. However, you still need to use the new URL in the links in your pages, and no longer link to the old URLs.
But the problems comes that my site has been online for a while and to avoid user that have a favorite of a page to have a 404 html error.
rules work well but I have many folder and file name with airagency that I would like to catch.
RewriteRule .*/airagency/(.*)$ /airspace/ [L,R=301]
RewriteRule ^(([^/]+/)*)airagency([^A-Za-z].*)?$ http://www.example.com/$1airspace$3 [R=301,L]