Forums

This topic is locked

URL Redirect from PHP to HTML

Posted 30 Apr 2003 17:03:43
1
has voted
30 Apr 2003 17:03:43 A. B. posted:
I need a redirect from a web site that's on a Mac to one that's on a pc. How do I do redirect from the Mac to an HTML file on a pc server? I do not know PHP...

Thanks in advance for your help.

Andrea

DMX, Mac G4

Replies

Replied 30 Apr 2003 18:01:50
30 Apr 2003 18:01:50 Brent Colflesh replied:
<?
header("Location: www.mypcserver.com/myfile.php");
?>

Regards,
Brent

Replied 30 Apr 2003 18:12:52
30 Apr 2003 18:12:52 A. B. replied:
Brent, thanks for your help, but the page just sits there. No redirection is taking place. Am I doing anything wrong? Here is the code that appears in my redirect.php page:

<?
header("Location: 216.65.202.28/westmemphis.com/index.html");
?>
<html>
<title>West Memphis</title>
<head></head>
<body>
</body>
</html>
Replied 30 Apr 2003 19:28:12
30 Apr 2003 19:28:12 Brent Colflesh replied:
Works fine for me - takes me to:

"No web site is configured at this address."

Is your server setup to parse PHP?

Regards,
Brent

Replied 30 Apr 2003 20:31:53
30 Apr 2003 20:31:53 A. B. replied:
Brent,

Yes, the Mac server is set up to run PHP. Many sites have PHP apps on them which work fine.

I just don't get this.

Thank you for your help.

Andrea
Replied 30 Apr 2003 20:56:46
30 Apr 2003 20:56:46 Brent Colflesh replied:
Well - try the HTML equivalent instead:

www.pageresource.com/html/metref.htm

Regards,
Brent

Reply to this topic