View Full Version : Can index.php be named to something else?
July 9th, 2006, 03:30 PM
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.
July 9th, 2006, 03:42 PM
I asked something similar for photopost, It seems it would take a large amount of rewritting to get the index page renamed.
July 9th, 2006, 04:27 PM
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.
July 9th, 2006, 04:36 PM
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:
[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!:)
July 9th, 2006, 05:38 PM
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.
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.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.