Denis Medeiros Posted August 8, 2010 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?
Wizard Posted August 8, 2010 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.
Denis Medeiros Posted August 8, 2010 Author 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]
stergos Posted February 19, 2011 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!
Byron Posted February 19, 2011 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.
stergos Posted February 19, 2011 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!
Byron Posted February 19, 2011 Posted February 19, 2011 I didn't notice the date on this thread. stergos got his answer in another thread. Closing...
Recommended Posts