我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在不更改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. 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?

近期文章

  • 有没有办法在String中转换常量或定义的名称? [PHP]
  • 我如何发送同一文件的多个请求,并使用jquery ajax在php中获取所需的响应
  • 错误:单击sugarcrm CE中的链接时模块不存在
  • 尝试在Apache服务器上运行.php文件时,我得到{“error”:“unauthorized”}
  • 在列表中分组 - php
  • 在数据库中插入记录
  • PHP写入XML文件
  • 将datetime json字符串转换为日期
  • 联系表单电子邮件字段问题
  • 在CentOS 6.3中更新php 5.3.3到5.3.19
  • 我无法使用API​​在Twitter上传媒体
  • PHP因为cookie无法正常工作
  • dbign在codeigniter中转义
  • 文本在php中对齐csv文件阅读器
  • PHP包过期日期不正确
  • “php script”/“mysql update”动态计划
  • 有时在0的字符0处抛出输入的结尾
  • 旋转横幅上显示的金额随每页重新加载而变化
  • 从Codeigniter中的库中加载模型
  • 没有使用PHP上传的文件名称扩展

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华