Question
i figured out why my site is so screwed up: domain pointers!
i have 6 domain pointers, and i didn't use any redirect, so basically my site is not search engine friendly, never knew that was a problem. whatever, its quite clear i am not a good webmaster.
anyway, from what i read i need to do a 301 redirect, but again i really don't know anything, it looks so complicated.
Answer
>> i have 6 domain pointers
Dare I say .htaccess again?
Create a .htaccess file, or add the following line to the end of an existing .htaccess file in your webs root directory.
Code:
Redirect 301 / http://www.main-domain.com
-Jim
Answer
page won't load now, just stalls, once i remove the .htaccess file it works.
i saved this as a txt file: redirect 301 / http://www.imosh.com/
to file: .htaccess
not sure what's wrong.
Answer
Some hosts don't allow ReDirect from within a .htaccess file..
You may want to check with your host to find out if that is the problem...
or, you could use this method instead.. (does the same thing)
Code:
RewriteEngine ON
RewriteRule /.* http://new-domain.com/ [R=301,L]
But, I'd still check with your host so you will know for sure what they allow and don't allow in the .htaccess file.
-Jim
Answer
i tried the new one, it stripped all the pictures from the site.
got alot of red x's
?
Answer
After I posted the above, I got to thinking..
Are your 6 domain pointers on the same site as the domain you plan to use? Already pointed to the same place via dns? If that's the case, you can't use the ReDirect, and you will have to use an even longer ReWrite rule. (be back in a minute with that code for you)
-Jim
Answer
Here ya go..
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.new-domain\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.new-domain.com/$1 [L,R=301]
-Jim
Answer
^^^^^ Couple of minor changes to the code above... ^^^^
Using NOT = rather =
Answer
Are your 6 domain pointers on the same site as the domain you plan to use?
our main site is www.ohgoth.com
all point to that one, but i want them to point to: www.imosh.com
Answer
Originally Posted by www.imosh.com
Are your 6 domain pointers on the same site as the domain you plan to use?
our main site is www.ohgoth.com
all point to that one, but i want them to point to: www.imosh.com
Then my code above is correct...
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.imosh\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.imosh.com/$1 [L,R=301]
Basically, that means this...
line 1: if the host is not this one
line 2: and the host is not blank
line 3: then redirect to this one.
-Jim