| | |
Redirecting a Directory or page...
![]() |
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.
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.
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
content="4 <- this number is the amount of seconds the page shows, and 0 is a allowed.
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> <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
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
![]() |
Similar Threads
- How to disable Back button of IE when executing welcome.aspx page? (ASP.NET)
- Problem in Redirecting a .aspx Page (ASP.NET)
- File doesn't upload into the directory I specified. Need help! (PHP)
- Yahoo! Directory Listings (Search Engine Optimization)
- 2 directory sites ranked 5 at google (Websites for Sale)
- Link swap directory (Promotion and Marketing Plans)
- IIS - Vitrual Directory (Windows NT / 2000 / XP)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: mod_rewrite lowercase filenames
- Next Thread: Need some help with .htaccess rediret...
| Thread Tools | Search this Thread |
.net apache asus bbc bluegene centos cisco citrix cloud cloudcomputing datacenters debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones motorola netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print qumranet redhat rhel robot russia sco server servers slackware software solaris source sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





