|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
I'm Lenny2 Bitch
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
|
How do I redirect www.domain.com to domain.com?
I've heard you can do this in htaccess but I don't know the code.
Anyone have it handy? Thanks
__________________
sig too big |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Feb 2005
Location: Café del Mar
Posts: 5,162
|
this is from domain to www.domain ... maybe just switch it vice versa...
RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] |
|
|
|
|
|
#3 | |
|
8.8.8.8
Industry Role:
Join Date: Mar 2006
Location: Noordermarkt
Posts: 30,509
|
Quote:
![]()
__________________
TAEMDLRMSKRJIXMRLSMRJ. |
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Mar 2004
Location: → → →
Posts: 1,717
|
There is more than one way, but I believe this should work
RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.domain\.com rewriterule (.*) http://domain.com/$1 [R=permanent,L] |
|
|
|