Friday, October 31, 2008

Re: htaccess problems.

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 <toddmetcalf@gmail.com> 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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: