Shame on you *AD7six* and *Piotr Beschel*! This group is for helping people 
not mocking them!
Yes the question is kinda silly, but this doesn't mean that you should mock 
people. What if 
you end up asking a question that someone better (in Cake) than you 
considers silly?
Would it be nice to get such replies? This is a community not a forum. Man 
up!

On the qestion:
Kunal, *.htaccess* files are Apache configuration files. When the tutorial 
said "*Also remove these .htaccess files*"
it did so under the "*A note on mod_rewite*" section. This is to be done if 
you DO NOT have mod_rewrite working at all 
or if you use a different webserver than Apache. So you do not need to do 
this if your application is running
on an Apache instance with mod_rewrite enabled.

What is mod_rewrite? Well take a look 
here<http://www.workingwith.me.uk/articles/scripting/mod_rewrite>
.

How to use pretty urls with Apache and other webservers? Well read 
this<http://book.cakephp.org/2.0/en/installation/advanced-installation.html#apache-and-mod-rewrite-and-htaccess>
.

On your problem: it seems that you've managed to get Cake's built in pretty 
Urls to work.
You are seeing index.php as it is the script being run de facto when you do 
this:

*Configure::write('App.baseUrl', env('SCRIPT_NAME'));*


So this is why what you see happens. Try to get mod_rewrite working, it has 
some advantages.

Borislav.

On Saturday, 14 July 2012 16:16:12 UTC+3, Kunal Bajpai wrote:
>
> As described in the blog tutorial - 
>
> Also remove these .htaccess files:
>
> /.htaccess/app/.htaccess/app/webroot/.htaccess
>
> This will make your URLs look like 
> www.example.com/index.php/controllername/actionname/param rather than 
> www.example.com/controllername/actionname/param.
>
> I did the same but still the above mentioned problem exists. My url - *
> blog.com/index.php/posts/ *works, but the  *blog.com/posts/ *shows the 
> error, Url not found on the server
>
> TIA
>
> Kbajpai
>

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to