Forum Moderators: phranque
Is this how it's done?
ErrorDocument 400 /notfound.htm
ErrorDocument 403 /notfound.htm
ErrorDocument 404 /notfound.htm
ErrorDocument 500 /notfound.htm
ErrorDocument 501 /notfound.htm
Redirect 301 33.22.323.232/ [widgets.com...]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^192\.168\.0\.1$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
ErrorDocument 400 /notfound.htm
ErrorDocument 403 /notfound.htm
ErrorDocument 404 /notfound.htm
ErrorDocument 500 /notfound.htm
ErrorDocument 501 /notfound.htm
Redirect 301 22.33.444.555/ [widgets.com...]
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST}!^www\.widgets\.com
RewriteRule ^(.*)$ [widgets.com...] [R=permanent,L]
Is this line necessary or does it have any effect?
Redirect 301 22.33.444.555/ [widgets.com...]