-
Can you do this...
Hello, i have a website which i redirected the homepage to another page on the website using the cpanel tool. Recently the cpanel has been down and i havent been able to redirect it to where i want. I still have ftp access and was wondering if theres a file that i can edit to change the redirect?
Thanks, + rep...
Matt
Edited by Lµke (Forum Moderator): Thread Moved from Website Designing. Please post in the correct section next time, Thanks :).
-
Here's a little script
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>W00tage.info | Redirecting...</title>
<script>
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
if (browser_type=="Netscape"&&browser_version>=5)
window.location.replace("http://www.w00tage.info/forums")
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
window.location.replace("http://www.w00tage.info/forums")
else if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("http://www.w00tage.info/forums")
else
window.location="http://www.w00tage.info/forums"
</script>
<style type="text/css">
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>
</head>
<body>
<div align="center" class="style1">You are now being redirected to the forums in 5 seconds...</div>
</body>
</html>
-
or
PHP Code:
<?php
header( 'Location: http://www.newsite.com' ) ;
?>
-
Quote:
Originally Posted by
Luckyrare
or
PHP Code:
<?php
header( 'Location: http://www.newsite.com' ) ;
?>
thats much easyer :P.
-
Or, if you don't want to use PHP:
Code:
<script type="text/javascript">
window.location = "http://asite.com";
</script>
-
Thanks guys, mod, please close thread.. + rep to u all
Nintendo & Danny, i have got to spread so ill put u in my sig so i dnt forget.