我有这样的 struct :
我的域名:www.example.com
这是我的拉威尔的项目文件夹:http://www.example.com/project
我想转到http://www.example.com/project/public
I know this answer has been answered before but I try to implement it and not work for me.
对不起,我的英语,我只会说西班牙语
我有这样的 struct :
我的域名:www.example.com
这是我的拉威尔的项目文件夹:http://www.example.com/project
我想转到http://www.example.com/project/public
I know this answer has been answered before but I try to implement it and not work for me.
对不起,我的英语,我只会说西班牙语
用于htaccess
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteCond %{REQUEST_URI} !project/public/
RewriteRule (.*) /project/public/$1 [L]
Put it into your public_html/ or www/ folder where is the root of example.com/