简体   繁体   English

如何在不更改url的情况下将主域重写为子文件夹?

[英]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/newhttp://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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM