| Shared Hosting Questions about your shared hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Feb 2008
1 posts
Gave thanks: 0
Thanked 0 times
|
remove www domain redirect
When I add a domain, domain.com automatically gets redirected to www.domain.com.
Is there any way to disable this behaviour so that when someone goes to domain.com, they stay there, but when someone visits www.domain.com they get redirected to domain.com (the opposite of what is happening now) |
|
|
|
|
|
#3 (permalink) |
|
URB4N 5K1LLZ
Super #1
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,648 posts
Gave thanks: 81
Thanked 127 times
|
The process of making your domain a Class B is quite simple. All you need to do is create or modify a file called .htaccess located in the root directory of your site and add the following lines, changing the red text to match your domain.
RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L] Taken from this site www. is deprecated.
__________________
Roxanne Surpass Staff Urban Roxy -Personal Blog SH63 - the best darn shared server!
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|