Page 1 of 1

Redirect från turfa.se till turfgame.com saknar snedstreck!

Posted: 18 Apr 2012 20:59
by TBIT
Om jag försöker gå till http://www.turfa.se/user/TurfBlekingeIT så hamnar jag på http://turfgame.comuser/TurfBlekingeIT och det är ingen giltig adress!

Code: Select all

$ curl -i 'http://www.turfa.se/user/TurfBlekingeIT'
HTTP/1.1 301 Moved Permanently
Date: Wed, 18 Apr 2012 18:55:15 GMT
Server: Apache/2.2.17 (FreeBSD) mod_ssl/2.2.17 OpenSSL/0.9.8q DAV/2 PHP/5.3.8 with Suhosin-Patch
Location: http://turfgame.comuser/TurfBlekingeIT
Content-Length: 246
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://turfgame.comuser/TurfBlekingeIT">here</a>.</p>
</body></html>
Felet är antagligen att Apache-konfigurationen for turfa.se innehåller:

Code: Select all

   Redirect 301 / http://turfgame.com
när det borde vara:

Code: Select all

   Redirect 301 / http://turfgame.com/
Notera snedstreck (slash) på slutet!

Re: Redirect från turfa.se till turfgame.com saknar snedstre

Posted: 20 Apr 2012 23:39
by gurubashi
+1

Borde vara enkelt att lösa?

Re: Redirect från turfa.se till turfgame.com saknar snedstre

Posted: 21 Apr 2012 15:18
by Drassen
Redirect permanent / http://turfgame.com/

används nu.

Re: Redirect från turfa.se till turfgame.com saknar snedstre

Posted: 21 Apr 2012 17:53
by AJ_
Nu funkar det. Behövde dock tömma browser-cachen för att mitt testfall skulle börja fungera, eftersom den permanenta redirecten cacheades som den skulle.

Re: Redirect från turfa.se till turfgame.com saknar snedstre

Posted: 22 Apr 2012 21:00
by TBIT
Drassen wrote:Redirect permanent / http://turfgame.com/

används nu.
Gott!