Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
I think I've got a routing problem - welcome page is perfect but app is broken
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Bowen  
View profile  
 More options Nov 9, 8:43 am
From: Peter Bowen <prbo...@gmail.com>
Date: Sun, 8 Nov 2009 13:43:21 -0800 (PST)
Local: Mon, Nov 9 2009 8:43 am
Subject: I think I've got a routing problem - welcome page is perfect but app is broken
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 in http://localhost/myproject/index.php/users gives me a
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


    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.
Dr. Loboto  
View profile  
 More options Nov 10, 2:21 am
From: "Dr. Loboto" <drlob...@gmail.com>
Date: Mon, 9 Nov 2009 07:21:53 -0800 (PST)
Local: Tues, Nov 10 2009 2:21 am
Subject: Re: I think I've got a routing problem - welcome page is perfect but app is broken
Try add rewrite base to your webroot .htacces:
RewriteBase /myproject

On Nov 9, 3:43 am, Peter Bowen <prbo...@gmail.com> wrote:


    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.
Peter Bowen  
View profile  
 More options Nov 10, 8:54 am
From: Peter Bowen <prbo...@gmail.com>
Date: Mon, 9 Nov 2009 13:54:16 -0800 (PST)
Local: Tues, Nov 10 2009 8:54 am
Subject: Re: I think I've got a routing problem - welcome page is perfect but app is broken
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:


    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.
Dr. Loboto  
View profile  
 More options Nov 10, 12:50 pm
From: "Dr. Loboto" <drlob...@gmail.com>
Date: Mon, 9 Nov 2009 17:50:49 -0800 (PST)
Local: Tues, Nov 10 2009 12:50 pm
Subject: Re: I think I've got a routing problem - welcome page is perfect but app is broken
<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:


    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.
End of messages
« Back to Discussions « Newer topic     Older topic »

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