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

Apache重定向所有文件

How to rewrite every URI to the index.php?

RewriteRule . index.php

this rewrites only files in current directory, so example.org/folder does not rewrite.

If that rule is in an htaccess file in your document root, then it will redirect everything. Instead of ., it should be .*:

RewriteEngine On
RewriteRule .* index.php

近期文章

  • 使用phpmailer类批处理邮件
  • 使用+增加计数器并将值存储到数据库
  • 如何分组数组但不创建新对象?
  • 在<option>标记中有多个值?
  • .htaccess与^(。*)$ index.php / $ 1给出“未指定输入文件”
  • 使用AJAX在Wordpress管理控制面板上进行地理编码地址
  • dropbox SDK php无法使用已知的CA证书进行身份验证
  • Document.getElementById在Google地图信息窗口中不起作用
  • Webservice - iphone + php [关闭]
  • 有没有更好的方法从Sphinx / MySQL一次从两个表中获取数据?
  • 拉取$ _GET数据并使用循环创建多维数组
  • Yii CGridView BELONGS_TO关系搜索:数字比较运算符失败
  • $ _SERVER ['PHP_SELF']错误链接,双链接
  • linux下启动tomcat失败
  • javascript / php>有没有办法使用常规按钮提交信息并调用javascript函数?
  • 点击链接后,获取php查询的where子句中的链接名称?
  • 链接php mysql分页无法正常工作
  • 将一页结帐添加到自定义页面
  • 使用php和html,如何计算从下拉列表中进行选择的次数?
  • 从超链接中删除尾随空格

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华