I've got a directory and am doing a 301 redirect (not straight link because I need to track links out). Is that the appropriate redirect method? Or is it 302? I did 301 because I heard 302's cause problems but I find the whole thing so confusing that I thought I should double check.
Umm, can anyone explain what the heck a 301 redirect is? I've been hearing that term and a couple days now and it seems like something I should know about.
LikeMike a 301 is a permanent redirect while a 302 is a temporary redirect. These are handled on a Linux server through your .htaccess file. Most control panels allow you to automatically set up both type of redirects. If you do not have that capability and have a .htaccess file you can edit it with a text editor. Most .htaccess tutorials show how to set up both type redirects. MisterLee, your question is more complicated. Will let someone more knowledgeable than I answer. I believe Google likes 301 redirects and Yahoo 302 redirects but could be wrong. Shannon
>> These are handled on a Linux server through your .htaccess file. Actually it has nothing to do with Linux and everything to do with running the Apache webserver MisterZee, what you need to do is not allow bots access to your redirect script. If your script is at mysite.com/jump.php, include a "Disallow /jump.php" line in your robots.txt file. That way none of the SE's robots will ever see the links or follow them and it won't matter what kind of link they are
Can anyone give me any examples of why a 301 and/or a 302 redirect would be necessary... Sorry for the noobish questions but I get very curious and like to ask a lot of questions when things are new to me. I will also do my share of research on Google.
One example of when you would want to do a 301 redirect is if you are renaming or moving a page so that the search engines can easily find the new page when they see the old one is not there.
Good idea. But I may reuse the script in different places and don't want to remember the robots syntax all over the place. Isn't there a meta tag I can add to the initial page to ask it not be indexed? Oh, but if I redirect it then I can't send meta tags can I?
I'm not sure that all SEs use it, but you could try adding the rel="nofollow" attribute to the links.
hi I want all files of old domain redirect to new domain www.olddomain.com/index.php www.olddomain.com/1stdir/2nddir/top.php and others file also redirect to new domain www.newdomain.com I tried to modify through .htaccess but only www.olddomain.com/index.php is going to www.newdomain.com but www.olddomain.com/1stdir/2nddir/top.php is not going to newdomian it giving error page not found
You're on the right track. the .htaccess file is the right place to do that. Search these forums for how to do it.