.htaccess problems

2010-03-01 Thread k...@coppcomm.ca
Hi all,

I'm trying to configure a default Cake 1.3 installation (www.site.com/
projadmin, where projadmin is the cake dir) and have been running into
trouble with our webhost. We're on a shared server, and no matter what
I try, I cannot get the paths working properly. I have duplicated the
cake installation on my personal dreamhost server (which is shared)
and it works automatically without having to change any .htaccess
rules.

Our webhost says mod_rewrite is enabled, but the site throws a 404
error with /c/o/our site/public/projadmin/app/webroot/

I sent them an email asking about this, and they responded Please be
advised that you need to use the following path: /services/webpages/c/
o/our site/

Now, I've tried lots of different RewriteBase rules in all 3 .htaccess
files, including the new path they replied with, but I always get a
404.

Please help! This has been bothering me for days!

-- Ken

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: .htaccess problems

2010-03-01 Thread WebRenovator
Hi

have a look at 
http://bakery.cakephp.org/articles/view/installing-cakephp-on-shared-hosting

On Mar 1, 6:22 pm, k...@coppcomm.ca k...@coppcomm.ca wrote:
 Hi all,

 I'm trying to configure a default Cake 1.3 installation (www.site.com/
 projadmin, where projadmin is the cake dir) and have been running into
 trouble with our webhost. We're on a shared server, and no matter what
 I try, I cannot get the paths working properly. I have duplicated the
 cake installation on my personal dreamhost server (which is shared)
 and it works automatically without having to change any .htaccess
 rules.

 Our webhost says mod_rewrite is enabled, but the site throws a 404
 error with /c/o/our site/public/projadmin/app/webroot/

 I sent them an email asking about this, and they responded Please be
 advised that you need to use the following path: /services/webpages/c/
 o/our site/

 Now, I've tried lots of different RewriteBase rules in all 3 .htaccess
 files, including the new path they replied with, but I always get a
 404.

 Please help! This has been bothering me for days!

 -- Ken

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: htaccess problems.

2008-12-05 Thread erikober

Thanks mate!
You saved me...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



htaccess problems.

2008-10-31 Thread Todd M

I'm finding problems with what I believe is with .htaccess in the
cake_install_directory.

My current web server only allows the /html directory as a HTML root.
To reduce complexity, I thought it would be good to start with
untaring the CakePHP in that directory.

so my directory appears something like this

/html
  /cake1.2
   /app
   /cake
   /docs
   /vendors
   /foobar

I've noticed in the past if I wanted to look at an html file in foobar
I had to use http://www.example.com/foobar

So I'm at step 4 in the documentation. I've confirmed with the web
server that has AllowOverride is set to All.

It seems that I can't do
http://www.example.com/cake1.2
http://www.example.com/cake1.2/index.php
or even
http://www.example.com/cake1.2/foo.html

The foo.html is just a hello world html file.

What I found is if I remove the .htaccess file I get a nice CakePHP
link telling my salt needs to be updated and that theres no connection
to DB.

So I went farther in the tutorial, I successfully linked DB  changed
salt word. Checked the http://www.example.com/cake1.2 and everything
looks fine, including DB is connected and no salt warning.

I did do a google search both here and the internet. I did find
something about adding a Rewritebase line to all 3 .htaccess, but not
sure if I did that correctly.  When I changed that, it seemed to just
go to a blank webpage. No errors or anything.

So my questions are if the .htaccess is necessary? good practice?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: htaccess problems.

2008-10-31 Thread Anupom
Hi there,

Can you please share your modified .htaccess file that you have inside your
cake1.2 directory? I guess you have other .htaccess files inside your root
or html directory? Can you tell us what's written inside those as well?

So my questions are if the .htaccess is necessary? good practice?


.htaccess is necessary for pretty URLs and is certainly a good thing to have
:) You can though setup your cake to not to use .htaccess.

Also please check if apache rewrite module is turned on in your web server.

Thanks.

On Fri, Oct 31, 2008 at 9:40 AM, Todd M [EMAIL PROTECTED] wrote:


 I'm finding problems with what I believe is with .htaccess in the
 cake_install_directory.

 My current web server only allows the /html directory as a HTML root.
 To reduce complexity, I thought it would be good to start with
 untaring the CakePHP in that directory.

 so my directory appears something like this

 /html
  /cake1.2
   /app
   /cake
   /docs
   /vendors
   /foobar

 I've noticed in the past if I wanted to look at an html file in foobar
 I had to use http://www.example.com/foobar

 So I'm at step 4 in the documentation. I've confirmed with the web
 server that has AllowOverride is set to All.

 It seems that I can't do
 http://www.example.com/cake1.2
 http://www.example.com/cake1.2/index.php
 or even
 http://www.example.com/cake1.2/foo.html

 The foo.html is just a hello world html file.

 What I found is if I remove the .htaccess file I get a nice CakePHP
 link telling my salt needs to be updated and that theres no connection
 to DB.

 So I went farther in the tutorial, I successfully linked DB  changed
 salt word. Checked the http://www.example.com/cake1.2 and everything
 looks fine, including DB is connected and no salt warning.

 I did do a google search both here and the internet. I did find
 something about adding a Rewritebase line to all 3 .htaccess, but not
 sure if I did that correctly.  When I changed that, it seemed to just
 go to a blank webpage. No errors or anything.

 So my questions are if the .htaccess is necessary? good practice?

 



-- 
Anupom Syam
http://syamantics.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: htaccess problems.

2008-10-31 Thread Todd M

Ok, so I read up some more on htaccess, so I went back to the original
htaccess file that was in the cake_install_dir
I should  point out that I'm on a shared web server.

I found some hints on debugging on the web so here are my
modified .htaccess
Mostly added the the [R] where the [L] was. This was for debugging so
the url would be in the address bar when it failed

in cake1.2 directory
IfModule mod_rewrite.c
   RewriteEngine on
   RewriteRule^$ app/webroot/[R]
   RewriteRule(.*) app/webroot/$1 [R]
/IfModule

for apps directory
IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$webroot/[R]
RewriteRule(.*) webroot/$1[R]
 /IfModule

for webroot directory
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^index.php
RewriteRule ^(.*)$ index.php?url=$1 [R]
/IfModule


I did add another RewriteCond in the webroot .htaccess. I also
modified the webroot's index.php to just an if-else looking at the url
?php
  if (isset($_GET['url'])){
echo 'You are here and url = ' . $_GET['url'];
  }
  else
  {
echo ' No url seen ';
  }
  echo 'BLAH';
?

So what I see works and doesn't work.
 http://www.example.net/cake1.2/app/webroot/foo.html  (just a hello
world html)
 http://www.example.net/cake1.2/app/webroot/index.php
http://www.example.net/cake1.2/app/webroot/index.php?url=posts

What doesn't work is
http://www.example.net/cake1.2/posts
http://www.example.net/cake1.2/app/posts
http://www.example.net/cake1.2/app/webroot/posts

Looking at the last one http://www.example.com/cake1.2/app/webroot/posts.
Because I put the [R] flags I see this in the address bar of the
failed attempt page
http://www.example.net/home/net/example/html/cake1.2/app/webroot/index.php?url=posts

So I'm thinking the problem is because I'm on a shared web server. But
thats just a hunch






On Oct 31, 3:42 am, Anupom [EMAIL PROTECTED] wrote:
 Hi there,

 Can you please share your modified .htaccess file that you have inside your
 cake1.2 directory? I guess you have other .htaccess files inside your root
 or html directory? Can you tell us what's written inside those as well?

 So my questions are if the .htaccess is necessary? good practice?



 .htaccess is necessary for pretty URLs and is certainly a good thing to have
 :) You can though setup your cake to not to use .htaccess.

 Also please check if apache rewrite module is turned on in your web server.

 Thanks.



 On Fri, Oct 31, 2008 at 9:40 AM, Todd M [EMAIL PROTECTED] wrote:

  I'm finding problems with what I believe is with .htaccess in the
  cake_install_directory.

  My current web server only allows the /html directory as a HTML root.
  To reduce complexity, I thought it would be good to start with
  untaring the CakePHP in that directory.

  so my directory appears something like this

  /html
       /cake1.2
            /app
            /cake
            /docs
            /vendors
        /foobar

  I've noticed in the past if I wanted to look at an html file in foobar
  I had to usehttp://www.example.com/foobar

  So I'm at step 4 in the documentation. I've confirmed with the web
  server that has AllowOverride is set to All.

  It seems that I can't do
 http://www.example.com/cake1.2
 http://www.example.com/cake1.2/index.php
  or even
 http://www.example.com/cake1.2/foo.html

  The foo.html is just a hello world html file.

  What I found is if I remove the .htaccess file I get a nice CakePHP
  link telling my salt needs to be updated and that theres no connection
  to DB.

  So I went farther in the tutorial, I successfully linked DB  changed
  salt word. Checked thehttp://www.example.com/cake1.2and everything
  looks fine, including DB is connected and no salt warning.

  I did do a google search both here and the internet. I did find
  something about adding a Rewritebase line to all 3 .htaccess, but not
  sure if I did that correctly.  When I changed that, it seemed to just
  go to a blank webpage. No errors or anything.

  So my questions are if the .htaccess is necessary? good practice?

 --
 Anupom Syamhttp://syamantics.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: htaccess problems.

2008-10-31 Thread Anupom
Did you try adding something like this?

RewriteBase /home/net/example/html/cake1.2/

On Sat, Nov 1, 2008 at 12:06 AM, Todd M [EMAIL PROTECTED] wrote:


 Ok, so I read up some more on htaccess, so I went back to the original
 htaccess file that was in the cake_install_dir
 I should  point out that I'm on a shared web server.

 I found some hints on debugging on the web so here are my
 modified .htaccess
 Mostly added the the [R] where the [L] was. This was for debugging so
 the url would be in the address bar when it failed

 in cake1.2 directory
 IfModule mod_rewrite.c
   RewriteEngine on
   RewriteRule^$ app/webroot/[R]
   RewriteRule(.*) app/webroot/$1 [R]
 /IfModule

 for apps directory
 IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$webroot/[R]
RewriteRule(.*) webroot/$1[R]
  /IfModule

 for webroot directory
 IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^index.php
RewriteRule ^(.*)$ index.php?url=$1 [R]
 /IfModule


 I did add another RewriteCond in the webroot .htaccess. I also
 modified the webroot's index.php to just an if-else looking at the url
 ?php
  if (isset($_GET['url'])){
echo 'You are here and url = ' . $_GET['url'];
  }
  else
  {
echo ' No url seen ';
  }
  echo 'BLAH';
 ?

 So what I see works and doesn't work.
  http://www.example.net/cake1.2/app/webroot/foo.html  (just a hello
 world html)
  http://www.example.net/cake1.2/app/webroot/index.php
 http://www.example.net/cake1.2/app/webroot/index.php?url=posts

 What doesn't work is
 http://www.example.net/cake1.2/posts
 http://www.example.net/cake1.2/app/posts
 http://www.example.net/cake1.2/app/webroot/posts

 Looking at the last one http://www.example.com/cake1.2/app/webroot/posts.
 Because I put the [R] flags I see this in the address bar of the
 failed attempt page

 http://www.example.net/home/net/example/html/cake1.2/app/webroot/index.php?url=posts

 So I'm thinking the problem is because I'm on a shared web server. But
 thats just a hunch






 On Oct 31, 3:42 am, Anupom [EMAIL PROTECTED] wrote:
  Hi there,
 
  Can you please share your modified .htaccess file that you have inside
 your
  cake1.2 directory? I guess you have other .htaccess files inside your
 root
  or html directory? Can you tell us what's written inside those as well?
 
  So my questions are if the .htaccess is necessary? good practice?
 
 
 
  .htaccess is necessary for pretty URLs and is certainly a good thing to
 have
  :) You can though setup your cake to not to use .htaccess.
 
  Also please check if apache rewrite module is turned on in your web
 server.
 
  Thanks.
 
 
 
  On Fri, Oct 31, 2008 at 9:40 AM, Todd M [EMAIL PROTECTED] wrote:
 
   I'm finding problems with what I believe is with .htaccess in the
   cake_install_directory.
 
   My current web server only allows the /html directory as a HTML root.
   To reduce complexity, I thought it would be good to start with
   untaring the CakePHP in that directory.
 
   so my directory appears something like this
 
   /html
/cake1.2
 /app
 /cake
 /docs
 /vendors
 /foobar
 
   I've noticed in the past if I wanted to look at an html file in foobar
   I had to usehttp://www.example.com/foobar
 
   So I'm at step 4 in the documentation. I've confirmed with the web
   server that has AllowOverride is set to All.
 
   It seems that I can't do
  http://www.example.com/cake1.2
  http://www.example.com/cake1.2/index.php
   or even
  http://www.example.com/cake1.2/foo.html
 
   The foo.html is just a hello world html file.
 
   What I found is if I remove the .htaccess file I get a nice CakePHP
   link telling my salt needs to be updated and that theres no connection
   to DB.
 
   So I went farther in the tutorial, I successfully linked DB  changed
   salt word. Checked thehttp://www.example.com/cake1.2and everything
   looks fine, including DB is connected and no salt warning.
 
   I did do a google search both here and the internet. I did find
   something about adding a Rewritebase line to all 3 .htaccess, but not
   sure if I did that correctly.  When I changed that, it seemed to just
   go to a blank webpage. No errors or anything.
 
   So my questions are if the .htaccess is necessary? good practice?
 
  --
  Anupom Syamhttp://syamantics.com/

 



-- 
Anupom Syam
http://syamantics.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: htaccess problems.

2008-10-31 Thread Todd M

No I did try that. The physical path was added by the server or
somehow my account is setup.

The RewriteBase did give me success !!

I'll just share part of the process for future people that may find
the same problem.

First of all the [R] that I talked about in my second post helped me
debug this a little more.

I needed to use the RewriteBase to strip off the physical address. I
now have the following .htaccesses

#/cake1.2/.htaccess
IfModule mod_rewrite.c
   RewriteEngine on
   RewriteBase /cake1.2
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]
/IfModule

#/cake1.2/app/.htaccess
IfModule mod_rewrite.c
RewriteEngine on
RewriteBase /cake1.2/app
RewriteRule^$webroot/[L]
RewriteRule(.*) webroot/$1[L]
 /IfModule

#/cake1.2/app/webroot/.htaccess

IfModule mod_rewrite.c
RewriteEngine On

RewriteBase /cake1.2/app/webroot
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
/IfModule

What also helps debug is to make a backup of the original index.php in
webroot and replace it with something simple like I did in my second
post. This reduced the the problem set to just the htaccess and
defines I needed to tell where cake directories were.

Thanks a ton.
-T

On Oct 31, 2:39 pm, Anupom [EMAIL PROTECTED] wrote:
 Did you try adding something like this?

 RewriteBase /home/net/example/html/cake1.2/



 On Sat, Nov 1, 2008 at 12:06 AM, Todd M [EMAIL PROTECTED] wrote:

  Ok, so I read up some more on htaccess, so I went back to the original
  htaccess file that was in the cake_install_dir
  I should  point out that I'm on a shared web server.

  I found some hints on debugging on the web so here are my
  modified .htaccess
  Mostly added the the [R] where the [L] was. This was for debugging so
  the url would be in the address bar when it failed

  in cake1.2 directory
  IfModule mod_rewrite.c
    RewriteEngine on
    RewriteRule    ^$ app/webroot/    [R]
    RewriteRule    (.*) app/webroot/$1 [R]
  /IfModule

  for apps directory
  IfModule mod_rewrite.c
     RewriteEngine on
     RewriteRule    ^$    webroot/    [R]
     RewriteRule    (.*) webroot/$1    [R]
   /IfModule

  for webroot directory
  IfModule mod_rewrite.c
     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_URI} !^index.php
     RewriteRule ^(.*)$ index.php?url=$1 [R]
  /IfModule

  I did add another RewriteCond in the webroot .htaccess. I also
  modified the webroot's index.php to just an if-else looking at the url
  ?php
   if (isset($_GET['url'])){
     echo 'You are here and url = ' . $_GET['url'];
   }
   else
   {
     echo ' No url seen ';
   }
   echo 'BLAH';
  ?

  So what I see works and doesn't work.
   http://www.example.net/cake1.2/app/webroot/foo.html (just a hello
  world html)
   http://www.example.net/cake1.2/app/webroot/index.php
 http://www.example.net/cake1.2/app/webroot/index.php?url=posts

  What doesn't work is
 http://www.example.net/cake1.2/posts
 http://www.example.net/cake1.2/app/posts
 http://www.example.net/cake1.2/app/webroot/posts

  Looking at the last onehttp://www.example.com/cake1.2/app/webroot/posts.
  Because I put the [R] flags I see this in the address bar of the
  failed attempt page

 http://www.example.net/home/net/example/html/cake1.2/app/webroot/inde...

  So I'm thinking the problem is because I'm on a shared web server. But
  thats just a hunch

  On Oct 31, 3:42 am, Anupom [EMAIL PROTECTED] wrote:
   Hi there,

   Can you please share your modified .htaccess file that you have inside
  your
   cake1.2 directory? I guess you have other .htaccess files inside your
  root
   or html directory? Can you tell us what's written inside those as well?

   So my questions are if the .htaccess is necessary? good practice?

   .htaccess is necessary for pretty URLs and is certainly a good thing to
  have
   :) You can though setup your cake to not to use .htaccess.

   Also please check if apache rewrite module is turned on in your web
  server.

   Thanks.

   On Fri, Oct 31, 2008 at 9:40 AM, Todd M [EMAIL PROTECTED] wrote:

I'm finding problems with what I believe is with .htaccess in the
cake_install_directory.

My current web server only allows the /html directory as a HTML root.
To reduce complexity, I thought it would be good to start with
untaring the CakePHP in that directory.

so my directory appears something like this

/html
     /cake1.2
          /app
          /cake
          /docs
          /vendors
      /foobar

I've noticed in the past if I wanted to look at an html file in foobar
I had to usehttp://www.example.com/foobar

So I'm at step 4 in the documentation. I've confirmed with the web
server that has AllowOverride is set to All.

It seems that I can't do
   http://www.example.com/cake1.2
   

Re: Installation/htaccess problems

2008-01-17 Thread hydra12

Why did you change the .htaccess file?  I'm assuming that cakeblog is
actually your cake folder, with cake and app inside?  If so, then you
should be able to go to http://localhost/~reuben/cakeblog/ and
everything should work without changing the .htaccess file at all.  If
you have a different directory structure, there are ways to make it
work, but I don't thing you need to change the .htaccess file.

hydra12

On Jan 15, 3:37 pm, Reuben Avery [EMAIL PROTECTED] wrote:
 Hi all,

 Having some difficulty getting off the ground here with the cake blog
 tutorial, wondering if maybe someone might have an idea.

 I have installed cakephp athttp://localhost/~reuben/cakeblog/

 I modified the root .htaccess file and added 'RewriteBase /~reuben/
 cakeblog/' and was then able to load the default root page just
 fine.

 But going to any directory underneath the cakeblog root (for 
 example,http://mission/~reuben/cakeblog/postsas per the blog tutorial), I am
 getting a 404.  Looking at the httpd log, each of these requests is
 being rewritten to '/Library/WebServer/Documents/Users' .. (using a
 Mac here, and the default document root is set to /Library/WebServer/
 Documents)

 Not having problems with anything else in ~reuben/ so I am presuming
 this is an issue with that htaccess file

 Thanks for any advice!
 Reuben
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Installation/htaccess problems

2008-01-15 Thread Reuben Avery

Hi all,

Having some difficulty getting off the ground here with the cake blog
tutorial, wondering if maybe someone might have an idea.

I have installed cakephp at http://localhost/~reuben/cakeblog/

I modified the root .htaccess file and added 'RewriteBase /~reuben/
cakeblog/' and was then able to load the default root page just
fine.

But going to any directory underneath the cakeblog root (for example,
http://mission/~reuben/cakeblog/posts as per the blog tutorial), I am
getting a 404.  Looking at the httpd log, each of these requests is
being rewritten to '/Library/WebServer/Documents/Users' .. (using a
Mac here, and the default document root is set to /Library/WebServer/
Documents)

Not having problems with anything else in ~reuben/ so I am presuming
this is an issue with that htaccess file

Thanks for any advice!
Reuben

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



.htaccess problems

2007-09-08 Thread morecakepls

I cant get my cakephp application to work on the server. I am using
the normal development server setup.

-cflive
  - app
  - cake
  - vendors
  - .htaccess

in the .htacess on the base folder (cflive), I have
IfModule mod_rewrite.c
   RewriteEngine on
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]
/IfModule

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

When i go to http://myserver.com/cflive/controller/action

I get a HTTP 404 Not Found on IE. The server runs PHP 5 and its a
godaddy hosting if that helps..

TIA


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: .htaccess problems

2007-09-08 Thread francky06l

Should it be : http://myserver.com/cflive/APP/controller/action ?

On Sep 8, 11:37 am, morecakepls [EMAIL PROTECTED] wrote:
 I cant get my cakephp application to work on the server. I am using
 the normal development server setup.

 -cflive
   - app
   - cake
   - vendors
   - .htaccess

 in the .htacess on the base folder (cflive), I have
 IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$ app/webroot/[L]
RewriteRule(.*) app/webroot/$1 [L]
 /IfModule

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

 When i go tohttp://myserver.com/cflive/controller/action

 I get a HTTP 404 Not Found on IE. The server runs PHP 5 and its a
 godaddy hosting if that helps..

 TIA


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: .htaccess problems

2007-09-08 Thread morecakepls

I found the solution to this problem, it has something to do with
godaddy subdomains.

I put this on .htaccess in cflive directory
IfModule mod_rewrite.c
   RewriteEngine on
   RewriteBase /
   RewriteRule^$ cflive/app/webroot/[L]
   RewriteRule(.*) cflive/app/webroot/$1 [L]
/IfModule

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


All the best!



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---