Jump to content


Photo

how do I redirect?


  • Please log in to reply
6 replies to this topic

#1 Vader6

Vader6
  • Project Team
  • 232 posts
  • Location:Las Vegas, NV
  • Projects:TheCentauriCrisis

Posted 01 January 2006 - 07:01 AM

I do not know how I would prevent people who type in http://www.tcc.gamemod.net/ instead of http://www.tccgamemo.../Site/Main.html fromgoing about and seeing everything on my FTP, how would I go about redirecting them automatically to the main page?
Posted Image
Vader6- The Centauri Crisis Skinner/Concept artist

#2 [MoD]Cha0s C0ntr0L

[MoD]Cha0s C0ntr0L

    title available

  • Project Team
  • 1,340 posts
  •  Not here

Posted 01 January 2006 - 09:04 AM

Well, a valid site for a start.

#3 Vader6

Vader6
  • Project Team
  • 232 posts
  • Location:Las Vegas, NV
  • Projects:TheCentauriCrisis

Posted 01 January 2006 - 09:05 AM

http://tcc.gamemod.net/Site/Main.html

correct site link
Posted Image
Vader6- The Centauri Crisis Skinner/Concept artist

#4 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 01 January 2006 - 11:27 AM

you need to place your html file in the main directory
Software is like sex; it's better when it's free ~Linus Torvald

#5 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 01 January 2006 - 01:25 PM

Open Notepad
In it put:
<?php
header('Location: http://tcc.gamemod.net/Site/Main.html');
?>
Save as 'index.php'
Upload this file.
Viewers will now be re-directed.

#6 Guest_ImmoMan_*

Guest_ImmoMan_*
  • Guests

Posted 01 January 2006 - 01:41 PM

D's suggestion is the most straightforward, yeah.

If you want to stop people from viewing all the files in a folder, just stick an index.php file in there (even if it's empty). The index file will show instead of the file list.

#7 Vader6

Vader6
  • Project Team
  • 232 posts
  • Location:Las Vegas, NV
  • Projects:TheCentauriCrisis

Posted 01 January 2006 - 08:30 PM

Thanks
Posted Image
Vader6- The Centauri Crisis Skinner/Concept artist




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users