PHP redirect code not working on MacOS X 10.4.2

Almost migrated all of my websites intact from previous webhost to my own new little Mini Mac with MacOS X 10.4.2 server installed.

Have not changed or updated PHP on the Mac box, but I do wonder why this code does not work since it did on the webhost with same PHP version installed:

<?
header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: $url_name" );
?>

Anyone knows where or what to tweak? 🙂

Posted on Sep 16, 2005 8:05 AM

Reply
5 replies

Sep 16, 2005 2:15 PM in response to Camelot

~Camelot

Many thanks for your reply.

In my initial post I forgot to mention that I did enable PHP via the Server Admin interface... Sorry about that. 🙂

It still puzzles me though that a simple code like the above mentioned wont work with the PHP, Apache configuration I have got now. I am using that code with two webhosts without any problems.

Any suggestions?

Sep 18, 2005 3:13 PM in response to philaweb

Seems to me now that something might be wrong with the way I write PHP kode. I have checked and the code I have written is not parsed via the server, a blank page is presented, the visit is logged in the web log.

The several Wordpress API's running on my MacOS box works perfectly well, the stuff I have written myself or other downloaded scripts does not work.

Is there something I am missing here?

Any specific routines for CHMOD's on executing PHP files?

Hmm...

This is weird. :/

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

PHP redirect code not working on MacOS X 10.4.2

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.