Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: phranque
I asked my hosting company for assistance with this, and they "helpfully" went ahead and put an htaccess file on the URL I wanted redirected.
I was hoping someone could look at the script that they used and make sure it's not going to cause me any problems with search engines.
RewriteRule .*(.*) [abc-widgets.com...]
The redirect is working fine. There isn't, nor was there ever, any content on abcwidgets.com. So, I don't have to worry about any existing links. I just want to make sure the above script is a legitimate tool and that SE won't think I'm trying to pull a fast one.
I'm no expert on htaccess but this is what I have seen for 301 redirects.
redirect 301 / [abc-widgets.com...]
That is not a 301 redirect. It is, by default, a 302, and that will cause you problems.
You need to have them change it to:
RewriteRule .* http://abc-widgets.com/ [R=301,L]
If you would rather redirect to the same page that was requested from www.abcwidgets.com, use:
RewriteRule ^(.*)$ http://abc-widgets.com/$1 [R=301,L]
Use the WebmasterWorld Server Header Checker [webmasterworld.com] to verify both what I said about the 302 above, and that the modified code I posted invokes a 301.