正则表达式:将 2 条规则合并为 1 条
作者:Marco 提问时间:7/5/2023
我有一个规则。我需要找到点(或不点)之后的第一个整数。下面是一个很好的良好数据示例,这些数据匹配并找到第一个捕获组:.htacces discography/type discography/typ...
mod-rewrite 问答列表
作者:Marco 提问时间:7/5/2023
我有一个规则。我需要找到点(或不点)之后的第一个整数。下面是一个很好的良好数据示例,这些数据匹配并找到第一个捕获组:.htacces discography/type discography/typ...
作者:musicarr 提问时间:3/12/2023
我一直在努力根据调用 url 路径中的内容重定向到两个不同的 url(文件),即: example.com/rh/xxxxx/ -> user.php?a=xxxxx example.com/rh...
作者:Josh Magness 提问时间:3/8/2023
我有一个博客,这些页面应该重定向到“漂亮的 URL”,如下所示: https://www.example.org/blog-post-title 我正在使用以下代码: RewriteEngin...
作者:VerySimple192347 提问时间:1/29/2023
我在根目录中有下一个.htaccess RewriteEngine on RewriteRule ^$ index.php [L] Order Deny,Allow Deny from all <F...
作者:WannabePuppetMaster 提问时间:1/8/2023
我试图让 Wordpress 使用基本的重写规则度过了一段可怕的时光。我在插件目录中有一个 php 页面,它需要接收一个 ID 号,以便它可以查找相关记录。我希望用户访问 url example.co...
作者: 提问时间:1/10/2023
我有一个包含以下行的文件.htaccess # ErrorDocument 404 /error/404.php Options All -Indexes -MultiViews Rewrite...
作者:Adir 提问时间:1/7/2023
我试图删除扩展并保留查询参数,但我收到 404 错误。.phpid 这是 URL: example.com/folder/file.php?q=123 我希望它是: example.com/...
作者:TerryE 提问时间:2/6/2012
许多发帖者在其 .htaccess 文件中调试其 RewriteRule 和 RewriteCond 语句时遇到问题。其中大多数都使用共享托管服务,因此无权访问根服务器配置。他们无法避免使用文件进行重...