redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nite4000
Forum Contributor
Posts: 209
Joined: Sun Apr 12, 2009 11:31 am

redirect

Post by nite4000 »

i have a script thats encoded and due to a error witht eh license the domain is wrong i manager to get it to go the correct domain but when i try to test the register page its going back to domain thats wrong and has 2 // like this mysite,com//folder/page.php taking it to .com shoudl be working but its not i renamed the files to filename_old and make a new file with this code here in the new one

Code: Select all

<?php
ob_start ();
require_once ('index_old.php');
$output = str_replace ( ',com', '.com', ob_get_contents () );
ob_end_clean ();
echo $output;
?>
This code makes it go to the .com instead of ,com but problem now is that its not working in the folder members and has 2 // like above.

Any suggestions how to make it work would be nice

Thanks
Post Reply