如何重写主域名的子文件夹,而无需更改网址是什么?重写、文件夹、网址、域名

2023-09-02 01:02:09 作者:逆夏

我想重写子文件夹,例如 http://example.com/new http://example.com 的.htaccess 我的网站内容和文件的 /新目录,我想 /新不出现用户和用户看到在 example.com 没有 /新,但加载从文件/新建目录。 我搜索很多,但我无法找到任何东西。 你有什么解决我的问题? 最好的问候。

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. I search very much but I couldn't find any things. Are you have any solution to my problem? Best regards.

推荐答案

很复杂,你想要做什么,是不是更容易移动的所有实际的/新根?

Very complicated what you want to do, is not more easy move all your actual /new to the root?