How do I get my site to only go to 1 URL?
Dear friends, I have a startup business and my website is http://www.docbeans.com. This website is also accessed by https://docbeans.com and https://docbeans.com/index. Can Google combine all of these other URLs into the http://www.docbeans.com URL?
My website is in .NET technology. I can give you code if necessary or can you help me?
- Download the URL rewrite module to the live webserver
http://www.iis.net/learn/extensions/url-rewrite-module/using-the-url-rewrite-module
- Open IIS Manager and double-click on the “URL Rewrite” icon
- Click on “Add Rules…” from the Actions pane
- Name the rule you're about to create (i.e., “Redirect docbeans.com to www”)
- From the dropdown box select Wildcards
- Enter * for the “Pattern”
- Expand the “Conditions” section and click “Add”
- In the “Add Condition” dialogue enter: Condition input: {HTTP_HOST}
- Check if input string: Matches the Pattern
- Pattern: docbeans.com
- Ignore case: checked
- Click OK
- In the Action section make sure that the “Action Type” is set to Redirect
- For the “Action Properties”, enter http://www.docbeans.com/{R:0}
- Be sure that the “Append query string” remains checked so that the query string part is also retained
- Be sure that the “Redirect Type” is set to Permanent (301)
- Apply the rule and test
- In Google Webmaster Tools, be sure to set your Preferred domain
With regards,
Shadi Namrouti
Google will read your site as duplicate content.
The trick to do is to get access to .htaccess
then write a few rewrite rules in.
/index is a universal place where your website will be store on your server. You have nothing to worry about. index is just langue the internet uses to display where your site is store based on your hosting. docbeans.com = docbeans.com/index. If you look at most sites in the url bar you;ll see a bunch of stuff after the .com and that's basically just the computer speaking to the internet on where things are located. Its totally normal.
Use canonical URLs for your home page and try again for this two url's. For more info ( https://support.google.com/webmasters/answer/139066?hl=en )
your words are mean to me a lot. Thank you so much Martha. I will keep this point for future