Denis Medeiros Posted August 8, 2010 Share Posted August 8, 2010 Sorry again, admin, but something strange is happening. If I type 'www.denismedeiros.com', my site works normally. However, if I type just 'denismedeiros.com', the page is redirected to my old domain ('denismedeiros.info'). Why is this happening? (I've checked all the options field in my cpanel and there is nothing referring to this domain) One more detail: on my old account that was deleted, there was a redirection 'denismedeiros.com' to 'denismedeiros.info'. Can that is causing this disorder? Link to comment Share on other sites More sharing options...
Wizard Posted August 8, 2010 Share Posted August 8, 2010 You need this in a text file named .htaccess the root directory of your domain. RewriteEngine On RewriteCond %{HTTP_HOST} ^domain.com RewriteRule (.*) http://www.domain.com/$1 [R=301,L] Replace domain.com with your domain, obviously. Link to comment Share on other sites More sharing options...
Denis Medeiros Posted August 8, 2010 Author Share Posted August 8, 2010 I made what you recommended, admin, but the problem continues. I need wait 24h to solve the problem? RewriteEngine On RewriteCond %{HTTP_HOST} ^denismedeiros.com RewriteRule (.*) http://www.denismedeiros.com/$1 [R=301,L] Link to comment Share on other sites More sharing options...
Denis Medeiros Posted August 8, 2010 Author Share Posted August 8, 2010 Now Work! Thank you very much! Link to comment Share on other sites More sharing options...
stergos Posted February 19, 2011 Share Posted February 19, 2011 I do that too, may i ask please this method is redirect only www.example.com or all the pages too (www.exaple.com/about.html)? If not we have to do this to all pages to the same .htaccess file? Thank you! Link to comment Share on other sites More sharing options...
Byron Posted February 19, 2011 Share Posted February 19, 2011 Both problems sound like a cache problem to me. stergos you need to post a url to your site so we can see what is going on, but try clearing your browser's cache first. Link to comment Share on other sites More sharing options...
stergos Posted February 19, 2011 Share Posted February 19, 2011 Both problems sound like a cache problem to me. stergos you need to post a url to your site so we can see what is going on, but try clearing your browser's cache first. Thank you I do it! Link to comment Share on other sites More sharing options...
Byron Posted February 19, 2011 Share Posted February 19, 2011 I didn't notice the date on this thread. stergos got his answer in another thread. Closing... Link to comment Share on other sites More sharing options...
Recommended Posts