Cpanel Redirect problem

Status
Not open for further replies.

BigEmmaFanz

New Member
Messages
232
Reaction score
0
Points
0
Odd, in cpanel's redirect function/service... It allows us to redicect a specific page to another right?

like for example, my account is "emwatson.x10hosting.com"

They have there http://emwatson.x10hosting.com/ [_________] Where we insert what we want as a redirect point and then another box to "where we want to redirect" visitors to.

So I insert "index.php" cause I wanna change the layout of my site and don't want people entering the site at the moment.

Here's where the problem starts... It also somehow redirects ALL "index.php"s on my subdomains. Which is obviously what I don't want.

Any thoughts?
 

mattspec

Active Member
Messages
1,390
Reaction score
0
Points
36
make an index page that uses a javascript redirect code?
 

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
The redirect function is for using directories to redirect, not pages.
 

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
At the top of index.php add:

PHP:
<?php

$page = 'Page you want to redirect to.';
header('Location: '. $page);

?>
 
Status
Not open for further replies.
Top