Ok I tried to follow this example.
http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller
to get rid of the pages name
but my problem is I didn't know where to put this.
   $Route->connect('/*', array('controller' => 'pages', 'action' =>
'display'));
so i just tried to go straight to the route.php file and do this as my
last thing in the file:
Router::connect('/*', array('controller' => 'pages', 'action' =>
'display'));
but when I do that i get an empty page, I mean completely empty.
so has anybody else had this issue?
I have a hunch it may have something to do with my .htaccess file but
I have not been a server admin long so I don't fully understand
modrewrite too well.

This  is my web root .htacces file.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

I tried to change the last RewriteRule to say
^(.*)$ PATH_TO_MY_APP/index.php?url=$1 [QSA,L]
and
^(.*)$ PATH_TO_MY_WEB_ROOT/index.php?url=$1 [QSA,L]

and still nothing.

//this is my app htaccess
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
 </IfModule>


//this is all that is not commented out in router.php
Router::connect('/', array('controller' => 'pages', 'action' =>
'display', 'home'));
Router::connect('/*', array('controller' => 'pages', 'action' =>
'display'));

when I have

Router::connect('/pages/*', array('controller' => 'pages', 'action' =>
'display'));

everything works fine but I have /pages/nameOfPage for all of my
static page.

Can anybody please help me?

for reference I have the advanced setup. (
cake in:
 /usr/lib/cake/

and my apps go in:
 /home/myname/CakeApps/NameOfApp

and then the webroot part :
/var/www/nameOfApp

using Apache2, PHP5 Ubuntu 7.10 Athlon64, 2 gig ram, som HD space.
logitech keyboard and mouse, old Altec Lansing speaker, on a homade
desk, with a Santa cup of Coffee made by maxwell house. if you need
any more information you are problably just being nosy.
thanks in advance.

-clint

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to