Page 1 of 1

Cakephp

Posted: Fri May 22, 2009 2:06 am
by Md_Murtuza_Hasan
I am having problem in configuring the .htaccess file for my cakephp project.
When i am using simple php the RewriteRule is working absolutely fine. But its causing problems in cake framework..

What i want to do is to hide the name of the controller.

e.g
Actual URL:
http://localhost/myproject/users/profile

what i want is:
http://localhost/myproject/profile

The RewriteRule i am using is:

RewriteRule /profile /users/profile

Note: the .htaccess file is in the project folder.... This rule is working fine without the cake framework.

Please help. Need this solutions real bad and fast..
Thanks.

Re: Cakephp

Posted: Fri May 22, 2009 2:23 am
by Christopher
Please do not double post.

Re: Cakephp

Posted: Fri May 22, 2009 3:13 am
by Md_Murtuza_Hasan
arborint wrote:Please do not double post.
Sorry for dat. Do u have any solution to the problem i mentioned ?

Re: Cakephp

Posted: Fri May 22, 2009 9:46 am
by Benjamin
Forum Rules wrote: 11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
You may also want to read:
  1. General Posting Guidelines
  2. Posting Code in the Forums
  3. PHP Manual
  4. PHP Tutorials