Organizational Research By

Surprising Reserch Topic

how to www or http www for redirecting using http.conf


Perhaps someone can help me. I need a rewrite rule like this: redirect from http:// and http://www. to https://www.mydomain.

For example, someone types in mydomain.com he gets redirected to https://www.mydoamin, if he types in www.mydomain.com he gets redirected to https://www.mydomain. So if someone types in mydomain.com and www.mydomain.com he should get redirected to https://www.mydomain

Also if possible to redirect to a subdomain like login.mydomain.com -> https://login.mydomain.com


asked Sep 13, 2013 in htaccess by rajesh
edited Sep 12, 2013
0 votes
29 views



Related Hot Questions

2 Answers

0 votes
Rather than redirect content you can specify canonical references to instruct search engines which URL to index. Irrespective of which version of your URL google sees, it will see the content as the same and index your site under the www.myblog.com domain. For example: ...
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013
0 votes
This question may be asked many times but I couldn't able to get a clear answer, so please forgive me.

I've an ASP.NET MVC blog running successfully, recently I came to know that google see both the requests http://www.myblog.com and http://myblog.com as different.

So I thought of doing some redirect from one to other but not sure from which one to other I've to do the redirect. Means, I want to do the 301 redirect from http://www to http:// or vice-versa.

Additionaly in the sitemap file I've specified the urls as http://www.* and in google web master tools the site is displayed as http://www.myblog.com.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...