Tänkte bara fråga om någon skulle vilja göra en php-fil (kan det kallas så?) så man kan redirecta... hittat koden men får det itne att funka
<?
header( "HTTP/1.1 301 Moved Permanently" );
header( "Status: 301 Moved Permanently" );
header( "Location: http://meminus.livejournal.com/" );
exit(0);
?>
Tänkte bara om någon var sugen och fixa det åt mig?
301 redirect
301 redirect
"Varje gång en PC dör får en ängel sina vingar"
"Drivrutiner är rutiner som driver en till vansinne"
"Drivrutiner är rutiner som driver en till vansinne"
- Peter Wall
- Hedersbit
- Posts: 7026
- Joined: 2002-03-08 0:52:56
- Location: Stockholm
- Contact:
Uhhrr.
Du kan inte bara redirecta med Apache / IIS istället då? Om du inte har PHP-stödet igång på din server (vilket jag antar du avser med "får det inte att funka"?).
Du kan inte bara redirecta med Apache / IIS istället då? Om du inte har PHP-stödet igång på din server (vilket jag antar du avser med "får det inte att funka"?).
Diplomerad webbutvecklare
Microsoft Certified Professional Windows 2003
Microsoft Certified Technology Specialist Windows Vista
"Did you know kidneys and applesauce are a delicacy in Sweden? I'm gonna get my applesauce back!"
Microsoft Certified Professional Windows 2003
Microsoft Certified Technology Specialist Windows Vista
"Did you know kidneys and applesauce are a delicacy in Sweden? I'm gonna get my applesauce back!"
- Peter Wall
- Hedersbit
- Posts: 7026
- Joined: 2002-03-08 0:52:56
- Location: Stockholm
- Contact:
- Mr Einstein
- Posts: 1935
- Joined: 2006-07-28 13:15:02
Finns det inte enklare redirect i php? Tror jag har det i någon fil hemma
http://www.buildlog.eu - Din egna bygglogg på nätet
- Peter Wall
- Hedersbit
- Posts: 7026
- Joined: 2002-03-08 0:52:56
- Location: Stockholm
- Contact:
Min kunskap om PHP är inte spec stor. Men jag gissar på att du helt enkelt inte har lagt till index.php som en giltig startsida (likt index.html). Skönt att det löste sig på annat sätt
Diplomerad webbutvecklare
Microsoft Certified Professional Windows 2003
Microsoft Certified Technology Specialist Windows Vista
"Did you know kidneys and applesauce are a delicacy in Sweden? I'm gonna get my applesauce back!"
Microsoft Certified Professional Windows 2003
Microsoft Certified Technology Specialist Windows Vista
"Did you know kidneys and applesauce are a delicacy in Sweden? I'm gonna get my applesauce back!"
http://www.webbdesign.info/exempel/redirect/php.html
Code: Select all
<?php
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.exempel.se/sida.html');
?>