simple php header redirect

nld2756

New member
Nov 2, 2009
180
2
0
I have a shared hosting account over @ justhost (what a shitty host) with a top level domain for my account and a few other addon domains on my hosting account. I tried using my top level account domain as a domain to header redirect for a facebook campaign, so i deleted the previous install of wordpress on the domain, got rid of the SQL databases, and deleted the fantastico information as well as all of the wordpress files.

this is what i get when i go to my site:

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/passive1/public_html/index.php on line 17

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/passive1/public_html/index.php on line 17

Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/passive1/public_html/index.php on line 17

does anyone know what i can do to fix this? +rep to any help, thanks
 


Well to uninstall a fantastico install you should do it through fantastico, but that's not essential.

The error messages mean that index.php IS being found. FTP into your account and double check all the files are gone. Once you delete index.php it should work.

Also try the file manager from within cpanel to checkout if any files are there, and delete if they are.

Apart from that, assuming your browser isn't caching an old response from the server - dunno :D
 
Well to uninstall a fantastico install you should do it through fantastico, but that's not essential.

The error messages mean that index.php IS being found. FTP into your account and double check all the files are gone. Once you delete index.php it should work.

Also try the file manager from within cpanel to checkout if any files are there, and delete if they are.

Apart from that, assuming your browser isn't caching an old response from the server - dunno :D

well, there is an index.php. but its being used for the header redirect not for wordpress. I deleted cache and used other browers/computers.

.htaccess, errorlog, and index.php are the only files left
 
Alright, well when i was testing it yesterday the original index.php acidentally got uploaded when i was trying to fix it. so i just replaced it with the actually index.php redirect and i get this original error again


Parse error: syntax error, unexpected $end in /home/passive1/public_html/index.php on line 4

and this is whats in the index.php

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.affiliatelink.com );
?>
 
C'mon - you're just being lazy now :)

You're missing the end quote before the close bracket on line 3.

Also add an exit; after the last header line to guarantee an exit - I've heard there are cases when the script doesn't end when you just use header()

:)
 
alright, i see the php wasnt formated correctly, thanks for your help

EDIT: beat me to it :O