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!
Make the files end in ".html".
This goes in Tech/IT, not Programming.
Possible solutions:
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.
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.
>>1
.htaccess:Redirect /index.htm http://www.sample.com/rofl.htm
If he has PHP enabled...
<?php
header("Location: http://example.com/rofl.htm");
?>
frames are for fags and netscape 4.0 users
>>10
I see what you did there!
><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.
You can, with Option FollowsSymLinks, but combining it and MultiViews makes apache shit all over itself and random parts of your website break.
That's what the nazi officiers said after WW2!
a > b
means that a
is greater than b
a >> b
means that a
is really greater than b
Retards.