Author Topic: Sub Domain Configuration and ssi_in.php  (Read 8595 times)

0 Members and 1 Guest are viewing this topic.

Offline tppromo

  • Newbie
  • *
  • Posts: 1
    • View Profile
Sub Domain Configuration and ssi_in.php
« on: September 08, 2010, 01:22:33 AM »
I have searched these forums and couldn't find an answer.  This is my setup:

My main site is domain1.com.
Trade Pulse is installed on a second domain as a sub domain in tp.domain2.com

When I add the PHP code to my domain1.com index.php file as:

Code: [Select]
<?php include_once("/full-path-to-sub-domain/tp/ssi_in.php"); ?>
Then when I view the source of my index.php file I see:

Code: [Select]
<script language="javascript" type="text/javascript">
var d;
d = Math.floor(Math.random () * 10000);
document.write('<s' + 'cri' + 'pt language="JavaScript" src="/tp/filter.php?pro='+ d +'"></sc' + 'ript>');
</script>

The problem is the path to /tp/filter.php is relative to domain1.com which is is trying to pull domain1.com/tp/filter.php which is non-existent since it should be tp.domain2.com/tp/filter.php.  I am also not seeing any cookies code like I've seen when I've searched the forum.

How can I make sure all of my relative paths are going to the correct domain with the Trade Pulse installation?

Thanks

Offline Kildoozer

  • Administrator
  • Sr. Member
  • *****
  • Posts: 420
    • View Profile
Re: Sub Domain Configuration and ssi_in.php
« Reply #1 on: September 08, 2010, 11:41:24 PM »
Hi,
you shouldn't use TP on sub domain, script won't work properly.