.com

Status
Not open for further replies.

halohub2

New Member
Messages
83
Reaction score
0
Points
0
is there a way that i can redirect EVERY .co.cc entered in domain thing to .com

i know you can add it for say halo-hub.co.cc to redirect to halo-hub.com

but what if someone enter halo-hub.co.cc/index.php

it will not redirect

or portal.php

im not going to go through every single link i have to do it so maybe there is something in the Control pannel for it

Is it wildcard redirect yes/no
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
No, There is no such thing in cpanel

you have to change each and every yourself
 
Last edited:

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
you can set up a script in PHP to go at the beginning of every page to check the current URL.
If the domain is correct, leave it, if it is co.cc redirect to the .com
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Or.... using .htaccess (might be what cPanel uses)

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST}    ^halo-hub\.co\.cc
RewriteRule ^(.*)$   http://halo-hub.com/$1 [R=permanent,L]
 
Status
Not open for further replies.
Top