I've still got one search engine, won't name it but it rhymes with doogle, that is crawling my site based on the tempurl. I need to modify the htaccess file to redirect it to the permanent domain.
It's going to: http://www.gator1772.com/~myname/index......
It needs to go to http://mydomain.com/index....
I've tried to write the lines based on various help files online, ended up getting locked out of my site - both the storefront and the back end. So I deleted my bad code and I've come crawling here for help.
I'm sure I need something like this:
# Redirect all pages from olddomain.com
# to newdomain.com
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.olddomain.com$[OR]
RewriteCond %{HTTP_HOST} ^olddomain.com$
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
Part of my problem is that I'm not redirecting from olddomain.com, I"m directing from olddomain.com/~myname/
And I've already got some code in my htaccess file - redirecting index.html over to index.php, and denying a few IP addresses. So is there supposed to be some separator between commands?
v1.3.9 on a linux server at hostgator.
Thanks in advance!


Reply With Quote
