Tech Support Guy banner
Status
Not open for further replies.
1 - 14 of 14 Posts

· Registered
Joined
·
109 Posts
Discussion Starter · #1 ·
I am trying to get rid of the annoying redirector on my site and well i just dont have the brain capacity to work it out i have found some code but im not sure if i can alter it to make the redirect instant..

Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><meta name="rating" content="general">
<meta http-equiv="refresh" content="5;url=portal.php">
<title>Bodybuilding forum worldofmuscle.co.uk! - Redirecting....</title>
<style type="text/css">
<!--
body {
	background-color: #003366;
}
.style1 {color: #FFFFFF}
-->
</style></head>

<body>
<div style="position:absolute; left: 225px; top: 158px; width: 563px; height: 262px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000; z-index: 2;" id="redirect">
  <div align="center">
    <p><strong>Bodybuilding Forum World Of Muscle </strong></p>
    <p><strong>You will be automatically redirected to the homepage in 5 seconds... </strong></p>
    <p><img src="templates/Cobalt/images/logo_phpBB.gif" alt="worldofmuscle.co.uk" border="0"/></p>
    <p><strong>Redirecting........</strong></p>
    <p><a href="portal.php"><strong>Click here if you do not wish to wait....</strong></a></p>
  </div>
</div>
<div style="position:absolute; left: 227px; top: 436px; width: 559px; z-index: 3;" id="info"><span class="style1"><strong>Note:</strong> To enter The Bodybuilding Forum now, click the link above </span></div>
<div style="position:absolute; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; left: 216px; width: 582px; top: 148px; height: 283px; z-index: 1;" id="border"></div>
</body>
 

· Registered
Joined
·
2,208 Posts
That code won't do anything for you... you'd have to modify the PHP file that's generating it. Look at the URL while you're on that page, and it will probably point you to it.
 

· Registered
Joined
·
1,205 Posts
I'm not exactly sure what you mean, but if you want portal.php to be the home page for your site, you can do this in your htaccess file and it should be even faster. If that's what you want, let me know.
 

· Registered
Joined
·
1,205 Posts
ok, do you use a .htaccess file? if you do, simply add this line, if you don't, then create a text file, rename it htaccess.txt and open it up.

Add this line:

DirectoryIndex portal.php

upload the txt file to your server, and now rename it to .htaccess

now try it, it should automatically redirect without any messages. :)
 

· Registered
Joined
·
1,205 Posts
So I'm assuming your host doesn't allow you to use .htaccess. I have no idea why.

Why don't you try renaming portal.php to index.php, and rename index.html to backup.html or anything like that.

then browse around your forum and see if your forum is still working correctly.
 

· Registered
Joined
·
109 Posts
Discussion Starter · #14 ·
I tried changing the files around as suggested but it caused my forum page not to appear,
I have changed most back but i left the index html file out Now if you click my url it takes you directly to the forums page, but not the portal (home page),I have tried the htaccess file again and again but i get the same eror of misconfig or cant complete request..
 
1 - 14 of 14 Posts
Status
Not open for further replies.
Top