I want to do 301 redirect from one domain to other but problem is I have lost the user ID & password of second domain. I need to do redirect urgently because both of the site having same content and architecture. Otherwise it will effect ranking of my first site. Is there any way to do successful 301 redirect. If NO can anyone suggest how can we minimize the effect of second domain over first one?
That's right. Have you tried contacting your second domain's registrar/host to retrieve the password for your account? They should have a record of that.
only people who can help you is your domain registrar. contact them asap. good luck.( believe me you need it lol)
Thanks friends.. But problem is much more complex for me.. There are some issues due to which the concern person is not ready to provide access of the second site for now. We are doing work in order to get it but till then I want some alternative simply because I do not want to loose my ranking due to all this. Any suggestions?
Go to your .htaccess file and put redirection code. It will redirect...You can find the the redirection code on codeproject.com.
If all the issue is the password, then the only option you have is contacting your host. The 301 will work fine.
You can even try a php redirect if you are not comfortable with .htaccess: Php 301 Redirect Tutorials
You do it in hosting control panel directly if you have such control, if you're not sure how to do it, your hosting provider will be able to assist more.
Thanks friends.... Actually I tried using ".htaccess" but its not working let me trying using php code once. Thanks Codd, for the same but please tell me one more thing where should I place this php code in "head" or "body" of home page?
Create a index.php file and add the php code in it. Do not put anything else besides the php code, not even blank lines. They can cause errors.