Welcome Guest ( Log In | Register)



2 Pages V   1 2 >  
Reply to this topicStart new topic
> Php Rediret Script
Jesse
post Feb 22 2008, 02:17 AM
Post #1


Premium Member
********

Group: Members
Posts: 175
Joined: 10-September 05
Member No.: 11,692



Ok, what I am trying to do is this. Re-direct a domain name called: avalon.asn.au to preschool.stmarksavalon.org.au

I have created a script that will re-direct within the a folder. However, the avalon.asn.au and stmarksavalon.org.au are PARKED Domains.

Any ideas on how to create this PHP Redirect Script please?
Go to the top of the page
 
+Quote Post
sonesay
post Feb 22 2008, 02:22 AM
Post #2


|||[ n00b King ]|||
*********

Group: [HOSTED]
Posts: 623
Joined: 20-June 07
From: Auckland
Member No.: 45,102



I think this code will do it


CODE
<?php

header("location: newlocationname.php");
?>


This post has been edited by sonesay: Feb 22 2008, 02:23 AM
Go to the top of the page
 
+Quote Post
Jesse
post Feb 22 2008, 02:24 AM
Post #3


Premium Member
********

Group: Members
Posts: 175
Joined: 10-September 05
Member No.: 11,692



Yeah that is the PHP Script I already have. But the issue is it needs to go from one parked domain to another sub-domain on another parked domain and the avalon.asn.au does NOT have its own folder to insert the current PHP Script that I have.

The actual working code I have is:

CODE
<?
$URL="http://preschool.avalon.anglican.asn.au";
header ("Location: $URL");
?>



However there needs to be the link in thee from avalon.asn.au to re-direct to the link in the code above.

This post has been edited by Jesse: Feb 22 2008, 02:26 AM
Go to the top of the page
 
+Quote Post
jlhaslip
post Feb 22 2008, 02:33 AM
Post #4


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,844
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Change the Nameservers on the Domain you need to be re-directed to the other Parked Domain.
Go to the top of the page
 
+Quote Post
Jesse
post Feb 22 2008, 02:36 AM
Post #5


Premium Member
********

Group: Members
Posts: 175
Joined: 10-September 05
Member No.: 11,692



Name Servers are Re-Directed.
Go to the top of the page
 
+Quote Post
jlhaslip
post Feb 22 2008, 02:39 AM
Post #6


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,844
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Wait a minute... the avalon.asn.au is a Subdomain, so the nameservers can't be changed.
Could you create a folder for avalon.asn.au and add the index file with the redirect to that folder??? Creating the subdomain creates a folder for the subdomain, does it not? It does in Cpanel.
Go to the top of the page
 
+Quote Post
jlhaslip
post Feb 22 2008, 02:41 AM
Post #7


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,844
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Or un-park that Domain and create an Add-on Domain at the second location.
Go to the top of the page
 
+Quote Post
Jesse
post Feb 22 2008, 02:42 AM
Post #8


Premium Member
********

Group: Members
Posts: 175
Joined: 10-September 05
Member No.: 11,692



No the avalon.asn.au is not the sub-domain (it is a parked domain) the sub-domain is preschool.stmarksavalon.org.au
Go to the top of the page
 
+Quote Post
Jesse
post Feb 22 2008, 02:47 AM
Post #9


Premium Member
********

Group: Members
Posts: 175
Joined: 10-September 05
Member No.: 11,692



That can't be done. The web host is the Anglican Church, the Minister I know is wanting me to help him with this but because of the limited access in the cPanel and so on, its making it hard and having to write a full php re-direction instead of just the simple re-direction which I already had made.
Go to the top of the page
 
+Quote Post
jlhaslip