Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

Need .htaccess file similar to fragee.de , help me!!

0 votes

How to create .htaccess file similar to this site frageee.de ??

whenever i type www.fragee.de on browser, it direct me to http://fragee.com, Just like www.twitter.com return to http://twitter.com.

This is very important in SEO. I see few q2a sites on directory are indexed on google both with www and http://, thats not good for pagerank, including my site.

I already set without www on google webmaster but google still indexing www. why? if im not mistaken its because my returning visitors like to type www.mysite.com, i really need to FORCE them to use http:// instead.

I ask my hosting "hostgator" about the issue, but none of their htaccess code works.

Anyone can help me with htaccess similar to fragee.de?

thanks

asked Apr 14, 2011 in Q2A Core by Durian
edited Apr 14, 2011 by Durian

1 Answer

+1 vote

This question on Stack Overflow should help you out. You'll need to have RewriteEngine on on a previous line if it's not there already. Put the code in your .htaccess in the root of your site (i.e. yoursite.com/.htaccess).

answered Apr 14, 2011 by DisgruntledGoat
Thank you. I actually found your answer here http://www.question2answer.org/qa/5584/how-redirect-www-domain-com-domain-com-like-perezhilton-com

and it works.