如何从网址中删除子文件夹

问题描述:

我将我的网站移动到名为/ corp /的子文件夹。因此,为了得到你键入网站如何从网址中删除子文件夹

mywebsite.com/corp/index.php 

我想删除/ CORP /所以它看起来像

mywebsite.com/index.php 

感谢所有帮助!

+0

这不是与您的[其他(现在的回答)的问题(http://*.com/questions/3497607 /重定向到一个子文件夹使用-htaccess的)? – 2010-08-17 00:15:23

您需要将APACHE设置中的UserDir更改为相应的文件夹。也就是说,如果现在你的UserDir是UserDir /public_html将其更改为UserDir /public_html/corp

更多信息,请参见http://httpd.apache.org/docs/2.0/howto/public_html.html

+0

我有cPanel,是否有修改使用cPanel?否则,我不知道如何改变这一点。 – numerical25 2010-08-16 23:31:58