开发者

how to hide url in cakephp?

开发者 https://www.devze.com 2023-02-19 09:02 出处:网络
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.

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


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消