Cakephp

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Md_Murtuza_Hasan
Forum Newbie
Posts: 2
Joined: Fri May 22, 2009 1:59 am

Cakephp

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Cakephp

Post by Christopher »

Please do not double post.
(#10850)
Md_Murtuza_Hasan
Forum Newbie
Posts: 2
Joined: Fri May 22, 2009 1:59 am

Re: Cakephp

Post by Md_Murtuza_Hasan »

arborint wrote:Please do not double post.
Sorry for dat. Do u have any solution to the problem i mentioned ?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Cakephp

Post 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
Post Reply