Results 1 to 25 of 27
May 26, 2013, 19:13 #21
Redirect Directive: Sends an external redirect asking the client to fetch a different URL. The new URL may be either an absolute URL beginning with a scheme and hostname, or a URL-path beginning with a slash. In this latter case the scheme and hostname of the current server will be added.
redirect|R[=code] Forces an external redirect, optionally with the specified HTTP status code. Use of the [R] flag causes a HTTP redirect to be issued to the browser. If a fully-qualified URL is specified (that is, including http://servername/) then a redirect will be issued to that location. Otherwise, the current protocol, servername, and port number will be used to generate the URL sent with the redirect.
From Old to New (internal)
RewriteRule ^/foo\.html$ /bar.html
From Old to New (external)
RewriteRule ^/foo\.html$ /bar.html [R]"First make it work. Then make it better."