Sub-domain to domain Redirect

Status
Not open for further replies.

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
Hi fellas !

It seems "Redirects" are not working.
I tried to "redirect" my sub-domain URL to my main domain URL.

Is this feature disabled now, as it used to work earlier ?

Thanks !
 

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
I'm not sure what's gone wrong, you'll have to wait for someone of a higher level than me to help you solve this fully. In the meantime to redirect your visitors, create a file called 'index.php' in the web root of your subdomain, and put the following inside it:
Code:
<?php
header("Location: http://www.examplesite.com/");
?>
This will do as a temporary redirect until an administrator can help you get to the bottom of this.
 

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
Thanks tnl2k7 !
Does this work for specfic urls too ? (User having specfic urls)

Thanks Again !

Hellooooo Admins !
 
Last edited:

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
Not a problem, I'm here to help.

What do you mean, user specific URLs? Like adding the username to the end of the URL or? I don't quite understand your question, sorry.

-Luke.
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
It should be working.
What's the subdomain you're having trouble with, and to where it should redirect?
 

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
It should be working.
What's the subdomain you're having trouble with, and to where it should redirect?

Hey fedlerner !

Please Redirect areafx1.maestrofx1.x10hosting.com to maestrofx1.x10hosting.com

Thanks !

PS: Why it is not working anyways ?
 

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
I know this might be too late now, sorry about that but yes it would, you'd just use:
Code:
<?php
header("Location: http://www.website.com/folder/page.html);
?>

But I think Fedlerner has already fixed the main problem =]
 

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
I know this might be too late now, sorry about that but yes it would, you'd just use:
Code:
<?php
header("Location: http://www.website.com/folder/page.html);
?>

But I think Fedlerner has already fixed the main problem =]

Yep that works for every url.
Thanks mate !
 

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
No problem.

Does the redirect work after Fedlerner fixed it? We need to know so we can close this thread, it helps the administrators keep track of things.

-Luke.
 

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
NO !
"Fedlerner" didn't fix it up till now.
I'm using your code temporarily.
I have other sub-domains too, 3 to be precise.
I "need" this function to work !
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Create an .htaccess file in the folders of these subdomains with the following:

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
 
Status
Not open for further replies.
Top