<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase   /myproject
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
 </IfModule>

And don't forget to restart Apache after change of httpd.conf Also
make sure that you edit right httpd.conf (at least with php.ini on Win
XAMP it is common mistake).

On Nov 10, 3:54 am, Peter Bowen <prbo...@gmail.com> wrote:
> Thanks but it didn't help. I'm desperate enough to start looking at
> Code Igniter :(
>
> On Nov 9, 3:21 pm, "Dr. Loboto" <drlob...@gmail.com> wrote:
>
>
>
> > Try add rewrite base to your webroot .htacces:
> > RewriteBase /myproject
>
> > On Nov 9, 3:43 am, Peter Bowen <prbo...@gmail.com> wrote:
>
> > > Hi,
>
> > > I'm sure the routing is messed up somewhere and I'd appreciate some
> > > help (8 hours of googling and experimenting and I'd be about ready to
> > > tear my hair out if I wasn't already bald).
>
> > > ----------setup----------
> > > I'm using Mac OSX with XAMPP for development. I've got the project in
> > > a subdirectory on Xampp's webroot:
> > > httpdocs/myproject/
>
> > > I've enabled rewrite in httpd.conf:
> > > LoadModule rewrite_module modules/mod_rewrite.so
>
> > > I've set up an alias in httpd.conf:
> > > Alias /quote-reminder /Applications/xampp/xamppfiles/htdocs/myproject/
> > > app/webroot
> > > <Directory “/Applications/xampp/xamppfiles/htdocs/myproject”>
> > > AllowOverride All
> > > Options All
> > > Order allow,deny
> > > Allow from all
> > > </Directory>
>
> > > I've got 3 .htaccess files each with:
> > > <IfModule mod_rewrite.c="">
> > >     RewriteEngine on
> > >     RewriteRule    ^$    webroot/    [L]
> > >     RewriteRule    (.*) webroot/$1    [L]
> > >  </IfModule>
>
> > > I've baked my app and have model, controller and view files
>
> > > ----------the problem----------
> > > I can see the pretty welcome screen (with the css) when I go to
> > > localhost/myproject/
>
> > > If I type in localhost/myproject/user or localhost/myproject/user
> > > expecting to see something to do with my user model I get a 404
> > > error.
>
> > > If I type inhttp://localhost/myproject/index.php/usersgivesmea
> > > list of users but without any css
>
> > > ----------thanks----------
> > > I'd really appreciate some pointers. Even better would be someone who
> > > lives near Portsmouth or on the Isle of Wight who would give me an
> > > hour of their expertise in exchange for lunch
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to