Friday, August 19, 2011

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

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

No comments: