Redirecting a Directory or page...

Reply

Join Date: Jun 2005
Posts: 238
Reputation: Lightninghawk is an unknown quantity at this point 
Solved Threads: 6
Lightninghawk's Avatar
Lightninghawk Lightninghawk is offline Offline
Posting Whiz in Training

Redirecting a Directory or page...

 
0
  #1
Oct 7th, 2005
Ok so you are having the same problem I am. You wanted to hide your directory listing because you were worried about someone seeing it and being able to manipulate it.

Or your index directory wasn't Index.html, it was something like Index.php, and you thought it just looked sloppy having your directory listing show up. (some what embarrassing to because you know everybody that tries to view it has to find the right index file or something like that).

Everybody has been telling you to use a .htaccess file right? Yeah, I thought so. I was told that to, but I couldn't ever get the dern things to work. So I went looking for an alternate method. Did a little HTML looking up and talked with a friend (ЯÄ?ŶŋĚ™) and we did some digging.

We finally came up with this very, very simple HTML code that you can edit and modify anyway that you want to, but here is how I am using it currently. I plan to use a Picture or Flash Animation for Directories that people should not be attempting to enter, but that will be later on.

<html>
<head>
<title>The 411~Exchange </title>
<meta http-equiv="refresh" content="4; url=http://www.daniweb.com">
</head>
<body bgcolor="#000000">
<br>
<br>
<br>
<br>
<br>
&nbsp;<p><b>
<a href="http://www.daniweb.com"><center><h1>You Are Entering DaniWeb</h1></a></b></p>
</p></center>
</color>
</body>
</html>

Like I mentioned. This code is just a simple and flexable one. Nothing complicated, and it doesn't have to be exactly like this. You don't need anything more than.


<HTML>
<Head>
<meta http-equiv="refresh" content="4; url=http://www.daniweb.com">
</HEAD>
</HTML>

Here is a site that you can view. Everything Redirects back here, and there is nothing else on the site. So it is not an add. It was created for the sole purpose to show how this works. Due to the domain .cjb.net though the site name will stay in the address bar when it redirects to daniweb. I turned url cloaking off, but it persists. Lame service

Click Here To View Demo


If you have questions. I will be happy to answer as best that I can


ahh a couple things first

<meta http-equiv="refresh" content="4; url=http://www.daniweb.com">

content="4 <- this number is the amount of seconds the page shows, and 0 is a allowed.
+_-¤ ŦĦễ £ﺄiĢĦŧňĨňĢĦǻщk ¤-_+
South Georgia Computers - Home and Office IT Solutions - Owner/Tech
Need the BEST software for Virus/Spyware Removal? Download - AVG Free -

Computer Problems? Forget the GeeK Squad use something better: DaniWeb
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Linux Servers and Apache Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC