Redirecting site's index : META Refresh

  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post May 20th, 2004, 10:35 pm

Hello everyone,

I have a member pm me to say that my index is able to be seen by imputting http://www.swishmagic.com, this is not good, is there an easy way to change that please, so http://www.swishmagic becomes http://www.swishmagic.com/forum/index.php?act=portal, i tried a re-direct in host cpanel;, they say it takes some hours to point to it by re-direct, when i try it does'nt load for me at all.
suzie.
http://jungaling.com/katecorner/
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 20th, 2004, 10:35 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 21st, 2004, 6:02 am

Code: [ Select ]
<html>
<head>
<META HTTP-EQUIV=Refresh CONTENT="5; URL=http://www.swishmagic.com/forum/index.php?act=portal">
<title>You shouldn't be here</title>
</head>
<body>
You are in the wrong place. The webpage is <a href="http://www.swishmagic.com/forum/index.php?act=portal">HERE</a> . If you are not automatically redirected click the link.
</body>
</html>
  1. <html>
  2. <head>
  3. <META HTTP-EQUIV=Refresh CONTENT="5; URL=http://www.swishmagic.com/forum/index.php?act=portal">
  4. <title>You shouldn't be here</title>
  5. </head>
  6. <body>
  7. You are in the wrong place. The webpage is <a href="http://www.swishmagic.com/forum/index.php?act=portal">HERE</a> . If you are not automatically redirected click the link.
  8. </body>
  9. </html>


Copy and paste that into notepad and save it as index.html and upload it into the root directory. That'll take care of it.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post May 21st, 2004, 6:24 am

Ooooh, atno, thankyou, hopefully i can manage that...
Today i got in touch with support at hosts, they said a re-direct does the job, well it did'nt atno, i could'nt get to my forums at all, i had to take the re-direct out again, luckily i did it as a temp so removal was simple.
Thanks a lot for your response atno...but i'm not very good with comps where is the root directory, what name is it something specific..?
suzie
:D
http://jungaling.com/katecorner/
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 21st, 2004, 6:45 am

Take a look at your original post suzie. You know that index you said could be seen? That's your root directory. Just put it in the same directory you have bluebird2.jpg and pat.jpg in.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post May 21st, 2004, 7:48 am

atno, before i left the post feeling well stupid lol, i was thinking bet its that www folder, .but i waited till i got the notification first...
Thanks atno, i'll do it now.
suzie.
:D
http://jungaling.com/katecorner/
  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post May 21st, 2004, 7:52 am

Says transfer complete, what now atno.
Will http://www.swishmagic.com go to a new place, not index like before...?
suzie.
:D
**edit** :shock: no, its the same place atno...i put in index [!].txt is this correct as i have....no wait....i saw the web page index.html, all is well atno, they now have a link "here" i retrieved that other file and uploaded the correct one.phew, thank goodness its right now !!
Suzie.
:oops: but :D :D :D
:oops: almost forgot my manners, thanks alot atno.
http://jungaling.com/katecorner/
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 21st, 2004, 7:57 am

Yep -- you got it -- takes you to the swish magic page now. Perfect
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post May 21st, 2004, 8:08 am

And here atno is the support i got this am...
Thank you for your correspondence,
I would recommend you do something called a HTML redirect. If you do a little search on the internet you should be able to find the code. It reloads the page to a differnet URL.
I hope this works out for you!
Have a nice day!
I just told support to maybe put a code in the faq's and that i got the result from ozzu.
suzie.
:D
http://jungaling.com/katecorner/
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post May 21st, 2004, 8:09 am

Just a suggestion, but I would set that 5 second delay to 0. that way
people that go to just your domain are immediately taken to the forum
index. Looks nice, and doesn't give the appearance of being under
construction or that you are moving.
UNFLUX.FOTO
  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post May 21st, 2004, 8:15 am

unflux, would atno be ok with that..?
suzie.
http://jungaling.com/katecorner/
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 21st, 2004, 8:56 am

*lol -- of course. Actually I dropped it down from 10 to 5, but 0 will do exactly what UNFLUX said it will do.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post May 21st, 2004, 8:59 am

unflux is very nice and he helps tons atno, but it being your code lol i did'nt want to mess with out your say so, thats just me, hope unflux understand its just the way i am.
:D
btw atno, has BWM altered his banner recently, its the text underneath ozzu, it look s different some how..?
http://jungaling.com/katecorner/
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post May 21st, 2004, 9:01 am

//moved
- dM
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 28, 2004
  • Posts: 1099
  • Status: Offline

Post May 21st, 2004, 12:43 pm

Not to be contrary... but... using an HTML meta redirect isn't really the best way to do it.

Instead, drop this on the very very top of your index.php page:

Code: [ Select ]
<?
header("Location: http://www.swishmagic.com/forum/index.php?act=portal");
exit;
?>
  1. <?
  2. header("Location: http://www.swishmagic.com/forum/index.php?act=portal");
  3. exit;
  4. ?>


You have to put this up top, because once you start sending any content out to the browser, you can't send headers anymore... PHP gets mad at that.

The reason I wouldn't use a meta tag is simply that doing it on the server reduces the back-and-forth.

You send the GET for the /index.php page, the server sends it, and your browser sees that meta tag and automatically asks for the specified URL. With the PHP way, you ask for the /index.php page, but the server sends you the /forum/index.php?act=portal page instead, no second request/response routine which means half the time and resources per page view.

.c
  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post May 21st, 2004, 1:03 pm

Carnix hello, thanks for your code, its very nice of you to provide it for me.
And where did you learn such stuff carnix...?
:D
DM,
Quote:
//moved

why did you move it, you did'nt leave me a link :cry: i had to wait till someone posted and i got a notification by e-mail...was it in the wrong place, sorry if it was!
suzie.
:D
http://jungaling.com/katecorner/
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 21st, 2004, 1:03 pm

Post Information

  • Total Posts in this topic: 18 posts
  • Users browsing this forum: No registered users and 196 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.