GnuSys Notes : UrlRedirection

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
URL Redirect:
http://www.seocompany.ca/seo/url-redirect.html
http://www.askdavetaylor.com/how_do_i_add_a_301_redirect_to_my_apache_httpdconf.html
http://www.jonsimpson.co.uk/weblog/2006-02-19/301-redirect-non-www-to-www.html

Redirect non-HTTPS connection to HTTPS:
http://www.cyberciti.biz/tips/howto-apache-force-https-secure-connections.html

Redirect visitors to a new page or site:
http://www.webweaver.nu/html-tips/web-redirection.shtml

put the below content (all in one line) in a file say xxx.sed
/^\s*<\/VirtualHost>\s*$/ i\RewriteEngine on\nRewriteRule ^/(.*)
http://www.askdavetaylor.com/$1[L,R=301]

and invoke this way:
sed -rf xxx.sed <input_file> > <output_file>

There are 379 comments on this page. [Display comments]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 2.6035 seconds