Help plz! (18)

1 Name: #!/usr/bin/anonymous : 2006-07-18 09:58 ID:+26oXPd6

I need help! Fast!

It's about html and stuff. Ok, I have the site http://www.sample.com/index.htm
and the site
http://www.sample.com/rofl.htm!

If someone enters the first, I want the site to redirect him to the second!

HEEEELP!

2 Name: #!/usr/bin/anonymous : 2006-07-18 10:17 ID:Heaven

Make the files end in ".html".

3 Name: #!/usr/bin/anonymous : 2006-07-18 10:19 ID:Heaven

This goes in Tech/IT, not Programming.

4 Name: #!/usr/bin/anonymous : 2006-07-18 16:29 ID:Heaven

Possible solutions:

  • Do a barrel roll (press 'Z' or 'R' twice)
  • Take a vacation. It's summer, go on a trip or something. Eventually, you'll realize that it can wait.
  • Use example.com instead of sample.com, as recommended in the RFC 2606, section 3. You may also use example.org and example.net.
  • Google htaccess redirect

5 Name: Albright!LC/IWhc3yc : 2006-07-19 06:07 ID:r7RWPgw0

What >>2 said. Are you still using MS-DOS?

htaccess is a PITA. The easiest way to do simple redirects is like this:

[html][head][meta http-equiv="refresh" content="0;url=rofl.html" /][/head][body][a href="rofl.html"]Go here[/a][/body][/html]

(Hmm, when trying to post this, I got a "Spammers Not Welcome!" message. So I changed all my angle brackets to square brackets. You'll need to change them back, of course.)

This will start the redirect as soon as the page is done loading. The link in the body is unnecessary, but there for people whose browsers don't support this meta tag (very rare nowadays) or who have redirects turned off in their browser for some reason (also very rare). If you want there to be a delay before the redirect happens, change the zero at the beginning of the content attribute to a number; the redirect will happen after that many seconds has passed after the page has loaded.

6 Name: #!/usr/bin/anonymous : 2006-07-19 16:38 ID:HC5KJB5a

If it's hosted on BSD / Linux / Solaris / etc, then you just make rofl.htm a symbolic link to index.htm. So long as Apache follows symlinks.

7 Name: #!/usr/bin/anonymous : 2006-07-19 20:26 ID:1VrXApT5

>>1
.htaccess:
Redirect /index.htm http://www.sample.com/rofl.htm

8 Name: #!/usr/bin/anonymous : 2006-07-20 04:14 ID:i+cC+2Ba

>>6
You're killing me ROFL

9 Name: #!/usr/bin/anonymous : 2006-07-20 17:50 ID:HC5KJB5a

If he has PHP enabled...

<?php

header("Location: http://example.com/rofl.htm");

?>

10 Name: setanbedul : 2006-07-21 07:05 ID:VcICwk7N

how bout this :

<html>

<head>
<meta http-equiv="Content-Language" content="in">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Gubrak Production</title>
</head>

<frameset framespacing="0" border="0" cols="*" frameborder="0">
<frame name="contents" target="main" src="http://www.sample.com/rofl.htm">
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>

</html>

11 Name: #!/usr/bin/anonymous : 2006-07-21 07:15 ID:Heaven

frames are for fags and netscape 4.0 users

12 Name: #!/usr/bin/anonymous : 2006-07-21 11:42 ID:Heaven

>>10
I see what you did there!

13 Name: Albright!LC/IWhc3yc : 2006-07-22 06:26 ID:wIuynIM5

><meta name="GENERATOR" content="Microsoft FrontPage 4.0">

Oh my God, English is insufficient to encapsulate the vast amount that you fail into mere words.

14 Name: #!/usr/bin/anonymous : 2006-07-22 18:15 ID:wZqEVKGv

>>6

You can, with Option FollowsSymLinks, but combining it and MultiViews makes apache shit all over itself and random parts of your website break.

15 Name: setanbedul : 2006-07-24 05:12 ID:VcICwk7N

>>13 oh well i just wanted to help!!

16 Name: #!/usr/bin/anonymous : 2006-07-25 01:50 ID:Heaven

That's what the nazi officiers said after WW2!

17 Post deleted by moderator.

18 Name: #!/usr/bin/anonymous : 2008-03-12 13:43 ID:Heaven

a > b means that a is greater than b
a >> b means that a is really greater than b

Retards.

This thread has been closed. You cannot post in this thread any longer.