Ticket #802 (new Defekt) — at Initial Version

Opened 14 years ago

Last modified 11 years ago

forum-redirects ska använda HTTP 301, inte 302

Reported by: mini Owned by: JorgenL
Priority: critical Milestone:
Component: Forumet Keywords:
Cc:

Description

En del googlesökninigar jag gjort ger träffar på forum-redirects.piratpartiet.se

 http://www.google.com/search?client=ubuntu&channel=fs&q=Mikael+Nilsson+piratpartiet+arvodering&ie=utf-8&oe=utf-8

Jag tror detta beror på att forum-redirects genererar HTTP 302 (Moved Temporarily) istället för 301 (Moved permanently).

Se tex  http://www.hochmanconsultants.com/articles/301-versus-302.shtml

$ wget -S  http://forum.piratpartiet.se/Topic181789-69-1.aspx
--2010-04-16 18:09:45--  http://forum.piratpartiet.se/Topic181789-69-1.aspx
Slår upp forum.piratpartiet.se... 79.136.113.39
Ansluter till forum.piratpartiet.se|79.136.113.39|:80... ansluten.
HTTP-begäran skickad, väntar på svar...

HTTP/1.1 301 Error
Location:  http://forum-redirects.piratpartiet.se/Topic181789-69-1.aspx
Server: Microsoft-IIS/5.0
Content-Type: text/html
Connection: keep-alive
Content-Length: 183

Adress:  http://forum-redirects.piratpartiet.se/Topic181789-69-1.aspx [följer]
--2010-04-16 18:09:46--  http://forum-redirects.piratpartiet.se/Topic181789-69-1.aspx
Slår upp forum-redirects.piratpartiet.se... 194.14.56.19
Ansluter till forum-redirects.piratpartiet.se|194.14.56.19|:80... ansluten.
HTTP-begäran skickad, väntar på svar...

HTTP/1.1 302 Found
Server: nginx/0.5.33
Date: Fri, 16 Apr 2010 16:10:21 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
Location:  http://vbulletin.piratpartiet.se/showthread.php?t=22017&page=1
Content-Length: 0

Adress:  http://vbulletin.piratpartiet.se/showthread.php?t=22017&page=1 [följer]
--2010-04-16 18:09:46--  http://vbulletin.piratpartiet.se/showthread.php?t=22017&page=1
Slår upp vbulletin.piratpartiet.se... 194.14.56.19
Återanvänder befintlig anslutning till forum-redirects.piratpartiet.se:80.
HTTP-begäran skickad, väntar på svar...

HTTP/1.1 200 OK
Server: nginx/0.5.33
Date: Fri, 16 Apr 2010 16:10:21 GMT
Content-Type: text/html; charset=ISO-8859-1
Connection: close
X-Powered-By: PHP/5.2.4-2ubuntu5.10
Cache-Control: private
Pragma: private
X-UA-Compatible: IE=7
Set-Cookie: ppsessionhash=56a88d646db2b6721beb9ab5fb17f102; path=/; HttpOnly
Set-Cookie: pplastvisit=1271434221; expires=Sat, 16-Apr-2011 16:10:21 GMT; path=/
Set-Cookie: pplastactivity=0; expires=Sat, 16-Apr-2011 16:10:21 GMT; path=/

Längd: ospecifierat [text/html]

Så: byt till 301!

Note: See TracTickets for help on using tickets.