P.Z. Low Cost CPanel Web Hosting  

Go Back   P.Z. Low Cost CPanel Web Hosting > Page-Zone Web Hosting Main Forum > General FAQ > General Questions and Comments

General Questions and Comments Post your question or grace us with your knowledge. Posting limited to registered members.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
simple PHP gallery question
Old
  (#1 (permalink))
agh98
Registered User
agh98 is on a distinguished road
 
Status: Offline
Posts: 2
Join Date: Feb 2003
Rep Power: 0
simple PHP gallery question - 02-17-2003, 07:21 PM

I, like many of you, have installed gallery (and love it!)
Simple questions:

Currently, the gallery is located at domainname.com/gallery. I don't have any other sites setup (integrating the gallery into a larger website is my next goal - I've seen great ones but don't know how to do it).

What I want to accomplish is to make domainname.com go right to the gallery and disable http directory viewing so people can't just to albums directly/browse the website manually. Is this possible and is there anything else I should do to keep unwanted visitors away from the site?
Thanks in advance,

Adam
   
Reply With Quote
Old
  (#2 (permalink))
fshagan
Registered User
fshagan is on a distinguished road
 
Status: Offline
Posts: 50
Join Date: Dec 2002
Rep Power: 40
02-20-2003, 02:04 AM

You can do this using a redirect page. Put the following three lines in a text file and name it "index.php":

<?
Header("Location:http://www.domain.tld/gallery");
?>

FTP that file to your public_html folder, and when someone surfs to http://www.domain.tld, the "index.php" file will redirect them to the Gallery.

There is a disadvantage; the URL they see in the browser's address bar when they get there will be "http://www.domain.tld/gallery" rather than the shorter version, and if they bookmark it, their bookmark will take them directly to the folder "gallery" rather than to your public_html folder. Those aren't big problems, unless you really want to hide where they are on your site.
   
Reply With Quote
Old
  (#3 (permalink))
Jesse_Siegel
Registered User
Jesse_Siegel is on a distinguished road
 
Status: Offline
Posts: 3
Join Date: Oct 2002
Rep Power: 0
02-20-2003, 02:50 PM

About integrating gallery, I found 4images easier to deal with than the one that comes in the fantastico installer, if you would like to see my website it is www.nettowa-ku.com and the gallery is www.nettowa-ku.com/gallery

I hope this is usefull, oh if you need further help I might be able to make a quick tutorial or something.
   
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Poll Jim Misc free php scripts 0 07-22-2007 01:03 PM
CMS Made Simple Jim CMS - Content Management Systems 0 07-20-2007 01:07 PM
Simple cgi directory question solinas General Questions and Comments 2 10-27-2004 07:42 PM
How to do a simple web download groat General Discussion 3 06-11-2003 05:16 AM
simple directory structure question groat General Questions and Comments 9 06-10-2003 03:04 PM


Live Help



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC6
vBulletin Skin developed by: vBStyles.com
Copyright © 2002 Page-Zone Web Hosting. All rights reserved.
Smilies provided by Crack's Smilies http://www.mysmilies.com