如何重写主域名的子文件夹,而无需更改网址是什么? [英] how to rewrite main domain to sub folder without changing url?

查看:178
本文介绍了如何重写主域名的子文件夹,而无需更改网址是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想重写子文件夹,例如 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?

这篇关于如何重写主域名的子文件夹,而无需更改网址是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆