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.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 02-12-2012, 05:50 AM   #1
jollyhumper
Confirmed User
 
jollyhumper's Avatar
 
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 |

Last edited by jollyhumper; 02-12-2012 at 05:53 AM.. Reason: added a question to the end
jollyhumper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-12-2012, 01:11 PM   #2
brentbacardi
Confirmed User
 
brentbacardi's Avatar
 
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!

Last edited by brentbacardi; 02-12-2012 at 01:13 PM..
brentbacardi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-12-2012, 01:48 PM   #3
jollyhumper
Confirmed User
 
jollyhumper's Avatar
 
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 |
jollyhumper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-12-2012, 02:22 PM   #4
jollyhumper
Confirmed User
 
jollyhumper's Avatar
 
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 |
jollyhumper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-16-2012, 08:58 AM   #5
jollyhumper
Confirmed User
 
jollyhumper's Avatar
 
Industry Role:
Join Date: Mar 2011
Location: Norway
Posts: 400
Quote:
Originally Posted by jollyhumper View Post
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
It does work, the code given. I'm not sure where I fucked up, but when I tried again today, it was effortless. GFmyself

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 |
jollyhumper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.