JSFiddle - React, Tailwind, and code Playground
by Ian Roberts
JavaScript
// htaccess williams landscaping redirects
RewriteRule ^(.*) http://new.example.com/$1
^/somepath(.*) http://thishost/otherpath$1 [R]
RewriteCond %{REMOTE_HOST} ^host1 [OR]
RewriteCond %{REMOTE_HOST} ^host2 [OR]
RewriteCond %{REMOTE_HOST} ^host3
RewriteRule ...some special stuff for any of these hosts...
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} cecenviro\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ourcolorado\.org
RewriteRule ^(.*) http://conservationco.org/$1 [R]
implemented
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} cecenviro\.org [NC,OR]
RewriteCond %{HTTP_REFERER} http://www.cecenviro\.org [NC,OR]
RewriteCond %{HTTP_REFERER} www.cecenviro\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ourcolorado\.org
RewriteCond %{HTTP_REFERER} http://www.ourcolorado\.org
RewriteCond %{HTTP_REFERER} www.ourcolorado\.org
RewriteRule ^(.*) http://conservationco.org/$1 [R]
example from https://my.bluehost.com/cgi/help/htaccess_redirect
RewriteBase /
RewriteCond %{HTTP_HOST} !oldexample.com$ [NC]
RewriteRule ^(.*)$ http://newexample.com/$1 [L,R=301]
trying...
RewriteEngine on
# Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} !cecenviro.org$ [NC,OR]
RewriteCond %{HTTP_HOST} !ourcolorado.org$ [NC]
RewriteRule ^(.*)$ http://conservationco.org/$1 [L,R=301]
didn't work - re-wrote base
trying...
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_HOST} !cecenviro.org$ [NC,OR]
RewriteCond %{HTTP_HOST} !ourcolorado.org$ [NC]
RewriteRule ^(.*)$ http://conservationco.org/$1 [L,R=301]
didnt work
trying
RewriteCond %{HTTP_HOST} !^(www\.)?williamslandscapemn\.com$ [NC]
RewriteRule ^(.*) http://conservationco.org/$1?domain=%{HTTP_HOST} [R=301,L]
didn't work
this worked - auto generated from redirects in godaddy settings
rewriteengine on
rewritecond %{HTTP_HOST} ^www.ourcolorado.org$ [OR]
rewritecond %{HTTP_HOST} ^ourcolorado.org$
rewriterule ^$ "http\:\/\/conservationco\.org\/"...