Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tppromo

Pages: [1]
1
Trade Pulse Support / 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

Pages: [1]