Scripts24.com Forums  
Go Back   Scripts24.com Forums > General > Server Config & Hosting Questions

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-18-2008, 02:13 AM
LiliVG LiliVG is offline
Junior Member
 
Join Date: Aug 2008
Posts: 6
Setting up multiple iRedirect domains on one server?

I have set up a wildcard DNS entry for a second domain (I'll call it domain2.com) on the same server as the domain (I'll call it domain1.com) that I have purchased the iRedirector license for. But then when I set up a new domain in iRedirector installed on domain1.com and make a redirection page for the second domain (testsub.domain2.com set to redirect to http://example.com), it forwards to the subdomain on domain2.com specified, but the redirection to http://example.com doesn't happen. I just see the directory index page for testsub.domain2.com. I thought the script would work on multiple domains as long as they were wildcarded and were on the same server? Have a missed a step somewhere?
Reply With Quote
  #2  
Old 08-19-2008, 07:37 AM
admin admin is offline
Administrator
 
Join Date: May 2001
Posts: 873
That sounds about correct. Please post a support ticket containing the actual domain names. It's hard to tell what might be wrong in general. Having a look at it might help a lot though.
Reply With Quote
  #3  
Old 08-20-2008, 09:56 PM
LiliVG LiliVG is offline
Junior Member
 
Join Date: Aug 2008
Posts: 6
I'm posting this here, so that it's somewhere on this website, since it's not in the documentation or anywhere else on this website:

In order to be able to use multiple domains on one server with one installation of iRedirector subdomain edition, you need to upload the index.php file to all of the domains you will be using redirects on. But first, you'll need to edit index.php to say this instead: (the default version says "define('DIRECTORY' './');" or something like that, you need to fix it so it specifies the domain directory that the installation is actually on):

<?php

error_reporting(E_ALL ^ E_NOTICE);

define('DIRECTORY', '/home/username/public_html/');
define('PAGE', './index.php');

include(DIRECTORY . 'redirect.php');

?>

change the word "username" in bold to the username of the domain that the installation of iRedirector is on.

Last edited by LiliVG; 08-20-2008 at 09:58 PM.
Reply With Quote
  #4  
Old 08-20-2008, 09:59 PM
admin admin is offline
Administrator
 
Join Date: May 2001
Posts: 873
I'm sorry if that's really missing in the current documentation.

A new documentation is definitely an important point on our to do list. We are "just" trying to get the new version 1.1.0 finished first. There will definitely be a new documentation afterwards!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.