301 redirect from rambina.com to www.rambina.com?
|
04-08-2014, 09:09 PM
Post: #1
|
|||
|
|||
301 redirect from rambina.com to www.rambina.com?
I have one new site having domain name rambina , which is having around 100 or more pages. But google has indexed rambina.com as well as http://www.rambina.com and so on with other pages too.
I am using Godaddy for hosting as well as for domain account, on the windows server. I have read somewhere here also that .htaccess doesn't work with it. I have bought an ssl certificate for it few days ago. Now my question is that can i have only one way or the code clearly written so that if anyone clicks rambina.com/xxxxxxxx/xxxxx or https://www.rambina.com/xxxxx/xxxxx. I need urgent help for it, please provide me the code with the explanation where and how to use or upload it. Ads |
|||
04-08-2014, 09:13 PM
Post: #2
|
|||
|
|||
Hi Saurabh,
My suggestion is that you'd better use 301 to redirect rembina.com to http://www.rembina.com. If you use Google webmaster tools, you need to submit those page which start with rembina.com to Google so as to remove from the indexing database. Go for this: http://support.godaddy.com/help/article/...ng-account Ads |
|||
04-08-2014, 09:17 PM
Post: #3
|
|||
|
|||
Since you are using Windows IIS7 web server, htaccess redirect won't work for you buddy. It will work only in Apache servers only. Redirection in IIS7 is a bit complex and will be difficult for even intermediate level people. You can use either ASP or PHP redirect as you can find the link below. Unfortunately you have to add this code to every individual pages in your website. I would go with PHP redirect as it will be easier. 301 Redirection is highly recommended in SEO point of view.
<?php // Permanent redirection header("HTTP/1.1 301 Moved Permanently"); header("Location: http://example.com/"); exit(); ?> Edit with PHP editor and check for syntax errors caused by white spaces. Additionally for handling duplicate pages of (www version and non www version), kindly set a Preferred domain in Google Webmaster account. Based on your preferred domain, set the redirection perfectly. You can check the status of server header(redirection) through many online tools available. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)