Sunday, August 21, 2011

Re: CakePHP beginner having trouble setting up .htaccess files with 1and1.com server config

Tried these tweaks to no avail... Still getting the following error but no 500 error on the page:

URL rewriting is not properly configured on your server.


On Fri, Aug 19, 2011 at 3:38 PM, andrewperk <andrewperk@gmail.com> wrote:
I use 1and1 as well and I found that I need to include a forward slash
and define where the app folder is as well in the path. My cake app is
installed in my root folder.

Here's my root .htaccess:

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

root/app/ .htaccess

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

root/app/webroot .htaccess

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

Only things to notice are is that the paths always include the app
folder and they all have the beginning / added to them. Works for me.

Good luck.

On Aug 19, 5:26 am, Seth Barrett <lighthouseinnovati...@gmail.com>
wrote:
> Hello,
>
> I'm attempting to get my first CakePHP installation running on a 1and1
> server configuration. I've read all the articles and thought I was
> doing everything properly but the results don't seem to indicate
> that.
>
> The domain is here:http://bourbonbeachjerk.com/
>
> You can see the error on URL rewriting is still present.
>
> I've got the .htaccess files in all three directories and have
> followed instructions here:http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess
>
> And here:http://stackoverflow.com/questions/1334746/htaccess-for-cakephp
>
> And some others which show similar info.
>
> Nothing is working. I either get error 500's or Eternal Server Error
> or the page loads with the same error present. I'm starting to feel
> like giving up and the 1and1 support keeps sending me a link to the
> same page Tutorial (the first one I posted above).
>
> One thing I'm unsure of is that my zip didn't seem to come with
> any .htaccess files. I'm wondering if there are some examples as I've
> just got the elements suggested in the articles in mine.
>
> Currently its like this.
>
> Root .htaccess -
>
> AddType x-mapp-php5 .php
> <IfModule mod_rewrite.c>
> RewriteBase /homepages/32/d183679463/htdocs/cakephp/
> RewriteRule ^$ app/webroot/ [L]
> RewriteRule (.*) app/webroot/$1 [L]
> </ifmodule>
>
> root/app -
>
> <IfModule mod_rewrite.c>
> RewriteEngine on
> RewriteBase /homepages/32/d183679463/htdocs/cakephp/
> RewriteRule ^$ /webroot/ [L]
> RewriteRule (.*) /webroot/$1 [L]
> </IfModule>
>
> root/app/webroot/ -
>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /homepages/32/d183679463/htdocs/cakephp/
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]
> </IfModule>
>
> What am I doing wrong? It must be something. Keep in mind this is all
> I have in the .htaccess files. There is nothing else as I started with
> blank text pages. Any direction would be greatly appreciated.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php



--
lighthouse
strategy, creative, development


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: