I remember I had a similar problem on my webspace, mod_rewrite was
working but somehow the .htaccess caused an error. So I searched for a
solution on the web and somewhere found the following code to put in
the first .htaccess file. It really worked, but I have no clue what it
does. Maybe this helps you too.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
On 6 Nov., 20:57, Andreas <[EMAIL PROTECTED]> wrote:
> I know mod_rewrite is working, I'm using it for another thing.
>
> Just left the mod_rewrite off on purpose until I recieve any other
> tips :)
>
> On Nov 6, 6:16 pm, grigri <[EMAIL PROTECTED]> wrote:
>
> > If you can see the page, but not the css, then mod_rewrite isn't
> > working properly.
>
> > If you've deactivated the mod_rewrite stuff then there is a line you
> > need to uncomment in app/config/core.php :
>
> > /**
> > * To configure CakePHP *not* to use mod_rewrite and to
> > * use CakePHP pretty URLs, remove these .htaccess
> > * files:
> > *
> > * /.htaccess
> > * /app/.htaccess
> > * /app/webroot/.htaccess
> > *
> > * And uncomment the App.baseUrl below:
> > */
> > //Configure::write('App.baseUrl', env('SCRIPT_NAME'));
>
> > This will generate urls that will work without mod_rewrite. They won't
> > be as pretty though.
>
> > On Nov 6, 5:06 pm, Andreas <[EMAIL PROTECTED]> wrote:
>
> > > I've been mailing back and forth with my host the entire day and they
> > > upgraded zend optimizer to 3.3 and also showed me a way to deactivate
> > > the zend stuff but that didn't make it work.
>
> > > The support guy told me that it looked like it was something with
> > > mod_rewrite which messed things up and therefor he commented out the
> > > mod_rewrite things in my .htaccess files. But have the .htaccess files
> > > changed any between 1.1.x and 1.2.x?
>
> > > Some good stuff though is that I can see the "welcome" page (without
> > > css though...) ;)http://thelucifer.net/tmp/cake_not_working.png
>
> > > I'm not so sure it's the zend optimizer anymore since it's both
> > > upgraded and deactivated...
>
> > > On Nov 5, 2:16 pm, Andreas <[EMAIL PROTECTED]> wrote:
>
> > > > Ah, ok thanks. I'll talk with my host!
>
> > > > On 5 Nov, 11:39, AD7six <[EMAIL PROTECTED]> wrote:
>
> > > > > On Nov 5, 8:23 am, Andreas <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hmm, yea, I'll try that. But shouldn't cakephp work even if the zend
> > > > > > optimizer is enabled?
>
> > > > > Not if the zend optimizer has a bug in it.
>
> > > > >http://groups.google.com/group/cake-php/search?group=cake-php&q=+inte...
>
> > > > > hth,
>
> > > > > AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---