Google Groups Home
Help | Sign in
Message from discussion Pretty urls not working
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Markitusss  
View profile
 More options May 15, 6:44 pm
From: Markitusss <marcos.a...@gmail.com>
Date: Thu, 15 May 2008 15:44:56 -0700 (PDT)
Local: Thurs, May 15 2008 6:44 pm
Subject: Pretty urls not working
Hi all,

I've been trying to run cake on a godaddy hosting service. mod_rewrite
is not  available, so I set up cake to use its Pretty URLs, by
uncommenting the line inside core.php and by deleting .htaccess files.
I got the index page to perfectly, with CSS styling and connection to
the database, but I can't access controllers/actions. I get a 404 not
found. I tried

www.mysite.com/index.php/controller/action and
www.mysite.com/index.php?url=/controller/action with no success.

On my computer, everything works fine with mod_rewrite, but I can'
make it to work on the server. Is it something special with godaddy,
or am I missing some other settings. Please help.

I also tried this fix: https://trac.cakephp.org/ticket/812

1. The URL's need to contain the extra '?'. In app/config/core.php
[line 42] you will have uncommented this line for no mod_rewrite.
Change it to:

define('BASE_URL',env('SCRIPT_NAME') . '?');

2. Need to extract the controller/view differently. Index.php (line
68) currently reads:

$uri = setUri();

Change this line to:

$uri = env('PHP_SELF') . env('QUERY_STRING');

but no luck...

Thanks in advance,

Best regards,

Marcos


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google