Jump to content

Recommended Posts

Posted

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'). :wacko: 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?

Posted

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.

Posted

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]

  • 6 months later...
Posted

 

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!

Posted

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.

Posted
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!

Guest
This topic is now closed to further replies.
×
×
  • Create New...