Redirect to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,
I know that this is not a php question, but I'm sure it some kind related to it. I need to put my public files under "public" folder, and other includes files and database config in other folder not shown to the public, but i don't know how to do that. I hope if some one show me how to achieve this.

For example, this is the directory structure:

/root
--/includes
----db.php
----config.php

--/public
----/index.php
----/images
----/admin
------/login.php



I don't want to enter (example.com/public) to view index.php file. I just want to enter (example.com) and it redirects to the public folder and shows only (example.com/index.php) in the URL. And for login.php should display (example.com/admin/login.php) not (example.com/public/admin/login.php)

Kind regards,
Ahmed.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux