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

htaccess - 将目录地址重定向到其中的确切页面

Sorry if I am using wrong terminology, while writing this question. I have a page in the directory on my website:

lorumipsum.com/dir/index.php

I would like to redirect to that page everyone, who would write address

lorumipsum.com/dir

in their browsers. How would would I do that? I tried writing in htaccess this line:

Redirect 301 /dir lorumipsum.com/dir/index.php

but it does not appear to work.

Make sure your DirectoryIndex contains index.php

近期文章

  • 使用SQL查询中的数据,但不显示表中的列
  • 创建博客但mysql php密码问题
  • 在PHP中将两列MySQL发送到JSON的问题
  • preg_replace模式而不是<span style =的递归函数
  • PHP NuSOAP响应
  • 如何确定while循环中tep_db_fetch_array的大小?
  • Facebook喜欢按钮回调
  • 简单的路线不工作laravel
  • Grocery-CRUD和表格验证
  • 从不同的数据库表获取搜索结果并显示它们?
  • <?php echo tep_image使这个响应[关闭]
  • Facebook App内容基于用户区域设置
  • 执行逐步相关操作的最佳方法
  • 如何在PHP中正确读取.htaccess GET的完整路径?
  • 在PHP中将图像动态添加到JQuery滑块
  • Doctrine循环使用太多内存,速度很慢
  • 在Javascript代码中调用php函数
  • 让Laravel工匠与localhost一起玩游戏
  • Twitter-bootstrap-3和Wordpress帖子显示
  • 如何在类和元素内部抓取文本

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华