/    Sign up×
Community /Pin to ProfileBookmark

Redirect page

Can anyone tell me how to create a redirect page to go from a .co.uk to a .com?

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@abou_hmedJun 12.2006 — just put in the index.php file the following function

header("location:http://www.sitename.com");
Copy linkTweet thisAlerts:
@guydauthorJun 13.2006 — Thank you very much indeed - I shall try this!
Copy linkTweet thisAlerts:
@spiderJun 13.2006 — <script language="javascript">

location.replace("www.yoursitename.com");

</script>


--------
put this into you html head section to redirect the url to another url
Copy linkTweet thisAlerts:
@the_treeJun 13.2006 — B..bu...but that's insane. Just use the HTTP headers. There's no reason to use Javascript for this.
×

Success!

Help @guyd spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...