Jump to content

[SOLVED] New host, site not working


johnasp

Recommended Posts

We have moved our website from a Linux based CPanel setup to your ehostpros, and we are having trouble with the site ( http://new.relatemag.com ) not working. None of the links on the site work. This is noticed if you click on the top navigation bar, on any links. The pages are un altered from the current site where they are working ( http://www.relatemag.com ). They all link using the same method of php (I think) here:

 


<?
header('HTTP/1.1 200 OK');
ini_set('url_rewriter.tags', '');
ini_set('session.use_trans_sid', false);
session_start();
$real_dir = preg_replace('/^\/?|\/processor\.php/', '', $_SERVER['PHP_SELF']);
if($url_trimed =  preg_replace('/^\/?|\/?$/', '', $_SERVER['REQUEST_URI'])){
$var_array = explode('/', $url_trimed);
$exclude_arr = explode('/', $real_dir);
$r_arr = array_diff($var_array, $exclude_arr);
$path = str_repeat('../', count($r_arr));
}else{
$r_arr = array();
}
$root = 'http://'.$_SERVER['HTTP_HOST'].'/'.$real_dir.'/';
include('modules/module.sub_menu.php');
if(in_array('mag', $r_arr))
include('modules/module.mag.php');
elseif(in_array('tell', $r_arr))
include('modules/module.tell_a_friend.php');
elseif(in_array('subscribe', $r_arr))
include('modules/module.subscribe.php');
elseif(in_array('survey', $r_arr))
include('modules/module.survey.php');
elseif(in_array('mood', $r_arr))
include('modules/module.mood.php');
elseif(in_array('merchandise', $r_arr))
include('modules/module.apparel.php');
elseif(in_array('quiz', $r_arr))
include('modules/module.quiz.php');
elseif(in_array('games', $r_arr))
include('modules/module.game.php');
elseif(in_array('links', $r_arr))
include('modules/module.links.php');
elseif(in_array('classifieds', $r_arr))
include('modules/module.classifieds.php');
elseif(in_array('ask', $r_arr))
include('modules/module.ask.php');
elseif(in_array('contact', $r_arr))
include('modules/module.contact.php');
elseif(in_array('search', $r_arr))
include('modules/module.search.php');
elseif(in_array('forum', $r_arr))
include('modules/module.forum.php');
elseif(in_array('control', $r_arr))
include('modules/module.control.php');
elseif(in_array('login', $r_arr))
include('modules/module.login.php');
elseif(in_array('logout', $r_arr))
include('modules/module.logout.php');
elseif(in_array('register', $r_arr))
include('modules/module.register.php');
elseif(in_array('forget', $r_arr))
include('modules/module.forget_password.php');
elseif(!is_array($r_arr) || !count($r_arr))
include('modules/module.home.php');
else
include('modules/module.error.php');
include('modules/module.template.php');
?> 

 

 

It is like it is linking to addresses that are made on the fly, but they don't seem to exist.  I don't know enough about PHP to understand how this functionality occurs.  Any help would be appreciated.

Is it possible this is because we are using a subdomain?

Link to comment
https://forums.phpfreaks.com/topic/65216-solved-new-host-site-not-working/
Share on other sites

your are using friendly urls...

 

you are either usign the force-type directive or mod_rewrite - either way your new server is not configured to do so or your htaccess file does not conatain the rules you need.

 

1st find out which method you're using - check the htaccess file has teh corrct rules and then contact the host and make sure they support what your htaccess is trying to achieve.

nope but your urls would mean that you either do need on of them or you have every page in a directory that matches that of the url...

 

If you need a bot of assistance finding you can email me - email is in my profile - I am on msn now

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.