![]() |
![]() |
![]() |
||||
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. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
|
301 redirection
Hi folks
I discovered that one of my blogs redirects domain.com --> www.domain.com. I discovered this when a automated search for some links yielded into a HTTP Error 301 - Moved permanently None of my other sites have this automated redirection, and I have no clue why this site does. I've searched a lot now, but the fuck can I find out how to change that. So, does anyone know how to fix this? I don't want the www. (Might this fuck up how google searches the site and register backlinks as well?) Jolly
__________________
MongerCash - This Asian program converts as hell!. Sign up! | Tons of Porn| Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 | |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Nov 2009
Posts: 1,425
|
Look in your .htaccess file
Redirect www to non-www: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC] RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301] Redirect non-www to www: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301] You should ALWAYS use one of these redirects everytime! This way search engines know which one you want to use and there is no danger in getting duplicate listings/penalties/etc for two different sites with the exact same content.
__________________
Go Fuck Yourself! ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
|
Thank you very much!
Jolly
__________________
MongerCash - This Asian program converts as hell!. Sign up! | Tons of Porn| Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 | |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
|
However, when I use your code, the browser is sent into a loop, which ends with an error.
(Error is given in Norwegian, but xtremely loosely translated "the command will never be completed") Jolly
__________________
MongerCash - This Asian program converts as hell!. Sign up! | Tons of Porn| Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 | |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
|
Quote:
thanks! Jolly
__________________
MongerCash - This Asian program converts as hell!. Sign up! | Tons of Porn| Email: Jolly [at] pornpitstop (døt) com | Icq: 619 746 889 | |
|
![]() |
![]() ![]() ![]() ![]() |