{"id":1786,"date":"2012-12-24T18:56:17","date_gmt":"2012-12-25T02:56:17","guid":{"rendered":"http:\/\/3d.coldstreams.com\/?p=1786"},"modified":"2012-12-24T18:56:17","modified_gmt":"2012-12-25T02:56:17","slug":"3d-coldstreams-com-is-the-new-url-for-coldstreams-comvideo","status":"publish","type":"post","link":"https:\/\/coldstreams.com\/3d\/2012\/12\/24\/3d-coldstreams-com-is-the-new-url-for-coldstreams-comvideo\/","title":{"rendered":"3d.coldstreams.com is the new URL for coldstreams.com\/video"},"content":{"rendered":"<figure style=\"width: 179px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.flickr.com\/photos\/35766190@N08\/8203033311\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"zemanta-img-inserted zemanta-img-configured\" title=\"Bella &amp; her Vintage Camera\" src=\"http:\/\/farm9.static.flickr.com\/8350\/8203033311_f08845ddf6_m.jpg\" alt=\"Bella &amp; her Vintage Camera\" width=\"179\" height=\"240\" \/><\/a><figcaption class=\"wp-caption-text\">Bella &amp; her Vintage Camera (Photo credit: Kamila Gornia)<\/figcaption><\/figure>\n<p>The old URL <a href=\"http:\/\/coldstreams.com\/video\">coldstreams.com\/video<\/a>\u00a0should automatically and transparently redirect to<\/p>\n<p><a href=\"http:\/\/3d.coldstreams.com\">3d.coldstreams.com<\/a><\/p>\n<p>The &#8220;video&#8221; name is no longer the best descriptor for this blog as the focus is now 3d still and 3d video photography.<\/p>\n<p>This change was implemented in a way that should be transparent &#8211; if you still have your bookmark set to coldstreams.com\/video or your RSS newsreader set to the old address, everything should continue to work through the automatic redirection.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><strong>How to do this<\/strong><\/p>\n<p><a href=\"http:\/\/www.groovypost.com\/howto\/howto\/move-a-wordpress-installation-to-a-new-directory\/\">Information on moving your WordPress folder<\/a> contents to a new folder (what has to be done)<\/p>\n<p>Then, I set up a .htaccess file in the root directory of my virtual server (for me, this is a folder named httpdocs running on Apache) to redirect from the original folder to a subdomain. I put the following in the .htaccess file<\/p>\n<pre>RewriteEngine on\nRewriteCond %{HTTP_HOST} ^coldstreams[.]com$ [OR]\nRewriteCond %{HTTP_HOST} ^www[.]coldstreams[.]com$\nRewriteRule ^video\/?(.*)$ http:\/\/3d.coldstreams.com\/$1 [R=301]\nRewriteCond %{HTTP_HOST} ^coldstreams[.]com$ [OR]\nRewriteCond %{HTTP_HOST} ^www[.]coldstreams[.]com$\nRewriteRule ^(.*)\\.^(.*)$ http:\/\/coldstreams.com\/$1<\/pre>\n<p>This uses the mod_write engine inside the Apache server. The first two conditions look for this website&#8217;s URL. The first RewriteRule then matches the original \/video followed by anything and redirects it to the new URL followed by the anything that was part of the original URL.<\/p>\n<p>If the URL did not include the \/video folder name, then it continues to look for matching rules. The next set of rules matches anything else (e.g. coldstreams.com\/xyz) and maps it to itself \u00a0(coldstreams.com\/xyz maps to coldstreams.com\/xyz).<\/p>\n<p>The trailing [R=301] passes back some information to the caller (such as a search engine) that the page has been moved to a new location.<\/p>\n<p>I posted this techie subject on the 3D blog because many of the web site examples I ran across that described how to redirect did not actually work except in a special case.<\/p>\n<div class=\"zemanta-pixie\" style=\"margin-top: 10px; height: 15px;\"><a class=\"zemanta-pixie-a\" title=\"Enhanced by Zemanta\" href=\"http:\/\/www.zemanta.com\/?px\"><img decoding=\"async\" class=\"zemanta-pixie-img\" style=\"border: none; float: right;\" src=\"http:\/\/img.zemanta.com\/zemified_e.png?x-id=a62e2116-d8ef-40ef-8024-025a1187e0ab\" alt=\"Enhanced by Zemanta\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The old URL coldstreams.com\/video\u00a0should automatically and transparently redirect to 3d.coldstreams.com The &#8220;video&#8221; name is no longer the best descriptor for this blog as the focus is now 3d still and 3d video photography. This change was implemented in a way that should be transparent &#8211; if you still have your bookmark set to coldstreams.com\/video or &hellip; <a href=\"https:\/\/coldstreams.com\/3d\/2012\/12\/24\/3d-coldstreams-com-is-the-new-url-for-coldstreams-comvideo\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">3d.coldstreams.com is the new URL for coldstreams.com\/video<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1786","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/coldstreams.com\/3d\/wp-json\/wp\/v2\/posts\/1786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coldstreams.com\/3d\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coldstreams.com\/3d\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coldstreams.com\/3d\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coldstreams.com\/3d\/wp-json\/wp\/v2\/comments?post=1786"}],"version-history":[{"count":0,"href":"https:\/\/coldstreams.com\/3d\/wp-json\/wp\/v2\/posts\/1786\/revisions"}],"wp:attachment":[{"href":"https:\/\/coldstreams.com\/3d\/wp-json\/wp\/v2\/media?parent=1786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coldstreams.com\/3d\/wp-json\/wp\/v2\/categories?post=1786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coldstreams.com\/3d\/wp-json\/wp\/v2\/tags?post=1786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}