0
votes

I m doing web application in cakephp1.3. I want my Url

http://mydomine.com/cakephp/users/login to be display as http://mydomine.com/users/login. Where users is controller name and login is action. I dont want to display cakephp on my url. Please help me to fix this bug.

Thanks in advance

Pushpa

3
pushpa, you might be interested in CakePHPs routing capabilities, documented here. And for a proper setup look here.benjamin
I added a second link for you.benjamin
thanks benjamin, I tried with routing configuration in routes.php, there i can hide only controller or action name but not cakephp root directory, can u guide me how to hide my cakephp(root) folderpushpa
the second link I added is a superb explanation of how to lay out your folder structure. You can use it to achieve your results. Yoursbenjamin

3 Answers

1
votes

You can direct your domain to the cakephp directory... No need to work with rewrite.

0
votes

either move all the files from the cakephp folder to the / folder, or use apache rewrite rules to remove cakephp from the request

0
votes

Put all of the content of your app dir to your web folder and then u will be able to access home page of your project directly. Don't forget to copy .htaccess.