Why main page appeared after installaion?

steveevergreen

Joined: 2009-10-28
Posts: 1
Posted: Wed, 2009-10-28 20:56

Can someone who have free time explain to me why main.php is the main page of gallery, instead of index.php after stalling at root directory . At a consequence, when i entered mydomain.com, the page with parent directory came up. It is really weird to me. Other my sql based applicaitons are not like that. What would be the remedy? thanks

Please fill out the following form and take a look at the linked pages. The more information you supply, the better we can help you. Remove this FAQ information from your post before submitting.

FAQ:
- How do I install Gallery 2?
http://codex.gallery2.org/index.php/Gallery2:How_do_I_Install_Gallery2
- How can I find a solution for my problem?
Visit http://codex.gallery2.org for: Frequently Asked Questions, Debugging Instructions, Known Issues and much more
Also try your luck with the advanced search function of this website
- What are the installation requirements for Gallery 2?
http://codex.gallery2.org/index.php/Gallery2:Installation_Requirements
- What information is required when asking for help in the forums?
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F
- You can copy and paste a lot of the required information from "Site Admin" -> "Maintenance" -> "System Information" if your G2 is up and running.


Gallery version (not just "2"):
PHP version (e.g. 5.1.6):
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database (e.g. MySql 5.0.32):
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 2.0):

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Wed, 2009-10-28 21:06

To change this do the following:

Edit config.php and near the bottom change the baseUri to your Gallery's URL and remove the main.php part

Then add this to your .htaccess file
# Set the default handler.
DirectoryIndex main.php

Now your URL will look like www.example.com/gallery2/ instead of www.example.com/gallery2/main.php
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments