[英]How to remove app subfloder from url in cakephp
I want to hide app subfolder from url. 我想从网址隐藏应用子文件夹。 Ex: http://abc.in/demos/gapps/User/signup here User is sub folder of app.
例如: http : //abc.in/demos/gapps/User/signup此处,用户是应用程序的子文件夹。 I want to remove foldername from url.
我想从网址中删除文件夹名。 and access like this http://abc.in/demos/gapps/signup
并像这样访问http://abc.in/demos/gapps/signup
Please help us coding Present htaccess in main and app dirextories code 请帮助我们在主目录和应用目录代码中编码当前htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
This is not working Please help me how to change. 这不起作用,请帮助我进行更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.