[Solar-talk] 404: Page 'Site' Unknown

Paul M Jones pmjones at solarphp.com
Mon Sep 25 14:20:13 PDT 2006


On Sep 25, 2006, at 4:11 PM, Matthew Mongeau wrote:

> When I try to access the index.php page, I get a "404: Page 'Site'
> Unknown'. My url is http://localhost/site/trunk/htdocs/index.php/
> page, how can I fix this?

The key here is the Solar_Uri_Action config setting for 'path'.   
Basically, the front controller has to know what the base URI is for  
all actions.

Normally, this would be "index.php", but that assumes the bootstrap  
index file is at the top of the web root, which is not true in your  
case.  Thus, we need to tell Solar_Uri_Action what the real base path  
is for all actions.

To do so, edit your Solar.config.php file and add or change this  
setting:

     $config['Solar_Uri_Action']['path'] = '/site/trunk/htdocs/ 
index.php/';

Now the front controller, which uses Solar_Uri_Action internally,  
should be able to find everything.

Hope that helps, please let me know if it does not.


--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list