![]() | | ||||||||
| | #1 |
| SEO IS EASY... War Room Member Join Date: Jan 2006 Location: Middleton On Sea, United Kingdom.
Posts: 1,699
Thanks: 212
Thanked 116 Times in 82 Posts
|
Hello warriors, Ok I have taken over the sites of my uncle I transferred them to my hosting and I installed drupal. If I type in http:// blablabla.com the site works perfect but if I type www. blablabla.com it doesnt!! How the hell does that work I changed the DNS servers about 10 hours ago Danny |
| | |
| | |
| | #2 |
| Enlightened Warrior War Room Member Join Date: Nov 2007 Location: New York, USA.
Posts: 538
Thanks: 12
Thanked 95 Times in 70 Posts
|
Hi Danny, The problem may have to do with your host provider. It *may* be because the DNS hasn't fully propagated yet - but I doubt it. Try shooting a ticket to your host's support department and inform them of the problem. Also, try adding this to the top of your .htaccess file: RewriteEngine On Options +FollowSymlinks RewriteCond %{HTTP_HOST} ^YourDomain\.com RewriteRule ^(.*)$ http://www.YourDomain.com/$1 [R=permanent,L] I use the above for all my domains by default. It permanently redirects your domain url with or without the "www" to "http://YourDomain dot com". It should take care of your problem; although I think your server should be doing this in the first place. Hope this helps. - Jay |
| | |
| | |
| | #3 |
| John Schwartz War Room Member Join Date: Jul 2008 Location: Near Dallas, TX, USA
Posts: 3,691
Thanks: 1,620
Thanked 3,245 Times in 1,140 Posts
|
Hey Oz Danny, yeah, what Jay said. Add that code to your .htaccess file in the public_html directory on the server. Should do you up right. If not, call your hosting tech support. They might have something set up at the top level to do that, but that would be weird if so. John |
| | |
| | |
| | #4 |
| Warrior Member Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hey Danny, what your are looking for is in your .htaccess file at about line 81…….To redirect all users to access the site WITH the 'www' prefix, adapt and uncomment the following: ( I could not put the example they give you in the .htaccess file because I'm a new warrior and can't post links as of yet) that should do it for you, I had the same problem with Drupal some time ago. |
| | |
| | #5 |
| SEO IS EASY... War Room Member Join Date: Jan 2006 Location: Middleton On Sea, United Kingdom.
Posts: 1,699
Thanks: 212
Thanked 116 Times in 82 Posts
|
Hello All, it was the proganation thingy... thank god! All sorted now works a treat Danny |
| | |
| | |
| | #6 |
| Senior Warrior Member Join Date: Jan 2009 Location: Oregon
Posts: 1,196
Thanks: 3
Thanked 69 Times in 61 Posts
|
You can use htaccess commands to redirect the non-www version to your www version. Look up the documents for RewriteRule for more information on how to do this.
|
| | |
| | |
![]() |
|
| Tags |
| confused |
| Thread Tools | |
| |
![]() |