PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 9th, 2006, 04:30 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Posts: 240
Question Can index.php be named to something else?

Is there any way to have Photopost Classifieds use something other than index.php as it's mail file, or have the default file for the classifieds directory be something other than index.php. I want the default file to present a set of custom information and not the list of categories that is currently presented in index.php. From the default file I will link to index.php, but I would like the default file for the diretory not to be index.php or rename what is now index.php to something else and still have the software work.
Thanks,
GateKeeper
GateKeeper is offline   Reply With Quote
Old July 9th, 2006, 04:42 PM   #2 (permalink)
Senior Member
Verified Customer
 
Join Date: Mar 2006
Location: Yorkshire
Posts: 618
I asked something similar for photopost, It seems it would take a large amount of rewritting to get the index page renamed.
Sybaris is offline   Reply With Quote
Old July 9th, 2006, 05:27 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Posts: 240
I guess we're down to seeing if the default can be changed in htaccess for the directory in question or something. If you could get the default URL (without a file reference to point to something else, then you could leave index.php alone.
GateKeeper is offline   Reply With Quote
Old July 9th, 2006, 05:36 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Posts: 240
Lightbulb Give this a try...

How do you set a website's or a folder's default page to something other than index.html, for example home.html?

Create an .htaccess file in your public directory, or the directory for which you want to change the default, and add the following line:

DirectoryIndex filename.html

[change filename.html to the file name that you want to use as the default, e.g. home.html, etc.]

I'll let you know how it goes!
GateKeeper is offline   Reply With Quote
Old July 9th, 2006, 06:38 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: May 2006
Posts: 240
This works very well. So long as the links to your classifieds or photopost site only references the directory in which your installation exists, and does not reference a specific file, the above mentioned solution works nicely.
Eg. http://www.timesharegateway.com/auctions/ can be pointed to any file you want from the htaccess file. Once in the main system, you may have to look at what means you want to use to reference the folder based URL to get users back to it, but otherwise this should work.
-GateKeeper

As a side note: If you use non-integrated header and footer files, you could build in a hard coded menu that contains a link to the folder based URL.
GateKeeper is offline   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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allready have a DIR named gallery xrayhead Before You Buy 2 July 12th, 2005 03:55 AM
sub-category named after the user imported_ATN How Do I? - vBulletin 3.0.X 2 June 1st, 2005 08:05 PM
After install, no user text on index.php or adm-index.php silknet01 Classifieds Installation & Upgrades 6 April 14th, 2005 02:43 PM
RC4 Mis-named variable? phlogiston Bugs From 1.0.0 1 April 2nd, 2005 10:03 AM
Blank index.php xide Installs and Upgrade - vBulletin 3.0.X 1 January 11th, 2005 10:23 PM


All times are GMT -5. The time now is 04:05 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0