I’d like to redirect http://example.com to http://www.example.com
I’ve try in my .htaccess :
RedirectPermanent http://example.com http://www.example.com
It doesn’t work.
How can i solve this problem ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are many ways but I’ll explain you some of them:
1. Redirect using RewriteRule module – mod_rewrite:
or
2. Redirect using Scripts:
PHP redirect:
ASP.NET redirect:
Ruby on Rails:
*If you need more info, please write me down!
Best regards*