[英]how to rewrite main domain to sub folder without changing url?
I want to rewrite sub folder such as http://example.com/new
to http://example.com
with .htaccess
My site contents and files are in /new
directory and I want the /new
does not appears to users and user see the example.com
without /new
but load the files from /new
directory. 我想子文件夹改写如
http://example.com/new
到http://example.com
用.htaccess
我的网站内容和文件在/new
目录和我想的/new
不向用户显示和用户可以在没有/new
情况下查看example.com
,但可以从/new
目录中加载文件。 I search very much but I couldn't find any things. 我进行了很多搜索,但找不到任何东西。 Are you have any solution to my problem?
您有解决我问题的办法吗? Best regards.
最好的祝福。
您要执行的操作非常复杂,将所有实际/ new移至根目录不是更容易吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.