Jump to content

How can you give an Addon domain full access?


pentan

Recommended Posts

I have a primary site.  On that site I have a blog/journal directory set up.  I wanted to give customers direct access to it with a dedicated domain name different than the primary one.  I did this and set it up as an Addon to the directory on the primary site.  It goes there with no problems, but the php scripts I have there make calls to files on the root of the primary site and it can't seem to access them directly, only by making an http:// call.  Am I missing something?

Thanks,
Michael
Link to comment
Share on other sites

If its in the same file system on the same server you can just refer directly to the file, even though its on a differend domain.  Eg ../send.php

However if your running it with a full http:// addrerss it should work.  Perhaps you could post your code?  It could also be that your server is not likeing the multiple connections if your not 'vertual hosting' but is unlikly!
Link to comment
Share on other sites

I've actually narrowed it down a bit where the problem is.  You are correct for straight PHP.  However in one place I have to use an HTML call to another page.  I have to pass a variable to it and then use the results.  I don't think I can use AJAX for this but I'll look into it.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.