mod-rewrite

mod-rewrite

文章 7 浏览 110

使用 n 个参数的 Apache URL 重写

我正在做一些 URL 重写,我可以通过以下方式完成我需要做的事情: RewriteRule ^([^/]*)/([^/]*)$ index.php?arg1=$1&amparg2=$2 [L,QSA] RewriteRule…

み格子的夏天 2024-08-21 12:51:31 5 0

如何将查询字符串变量与 mod_rewrite 匹配?

假设我有带有如下查询字符串参数的 URL: /index.php?book=DesignPatterns&amppage=139 /index.php?book=Refactoring&amppage=285 使用 mod_rewrite,…

网白 2024-08-21 11:36:38 1 0

当 url 指向现有文件夹时,不会调用 htaccess

我在 Windows 7 上运行 zend 服务器。 我正在使用 jooml 中的 htaccess: Options +FollowSymLinks RewriteEngine On RewriteCond %{QUERY_STRING} mo…

笛声青案梦长安 2024-08-21 10:00:19 5 0

mod_rewrite:将分层子域转换为分层子目录

请考虑以下问题。我已经得到了带有分层子域的domain.tld,如下所示: a.domain.tld b.a.domain.tld c.b.a.domain.tld ... etc. 在Web根目录中还有假设…

站稳脚跟 2024-08-21 09:59:05 6 0

将 *.php 重定向到干净的 URL

我的 htaccess 不太工作: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\.php$ /b…

你好,陌生人 2024-08-21 09:44:37 4 0

Zend_Router... Zend_Form... Mod_Rewrite... 将 URL 获取值对重写为斜杠

我正在向当前 url 提交一个普通的 元素...它是搜索页面的一部分。生成的网址如下。 http://domain.com/module/controller /action/get1/value1/?get2=…

潦草背影 2024-08-21 08:41:37 3 0

RewriteCond 匹配某些参数值,第 2 部分

在开始之前,我想说我知道我的问题几乎与这个。 不同之处在于,虽然我尝试使用 RewriteCond 来识别查询中的特定参数并适当重定向,但我不希望将查询字…

决绝 2024-08-21 05:54:24 5 0

使用 Apache 进行 .htaccess 端口重定向

我想将 http://www.mydomain.com/service 重定向到 http://www.mydomain.com:PORT,其中 PORT 是为页面提供服务的服务的端口。 考虑到 apache 正在侦…

时光沙漏 2024-08-21 05:14:31 1 0

重写 url 在 php 中的 ubuntu localhost 上不起作用

我有一个名为 call_center_interface.php 的文件, Options +FollowSymLinks RewriteEngine on RewriteRule call_center_interface-act-(.*)\.htm$ ca…

甜中书 2024-08-21 04:52:08 1 0

.htaccess 重定向重写规则

我已经为此奋斗了一段时间,但似乎无法使其发挥作用。我的旧系统使用了大量查询字符串来呈现页面,但它们不再是必要的。我的网址如下: 旧网址:www.e…

忱杏 2024-08-21 04:49:31 1 0

mod_rewrite 使用 Rewritemap prg 指令导致 apache 崩溃

Apache 配置: RewriteEngine on RewriteLock /var/www/lib/rewrite.lock RewriteMap sessionValid prg:/var/www/lib/allow.php 我修复了设置文件可执…

梦过后 2024-08-21 04:46:56 5 0

mod重写问题

为什么这个有效: RewriteEngine On RewriteCond %{REQUEST_URI} ^/book/blabla$ RewriteRule ^.+$ /book/?name=blabla [NC,L] 但是这个无效? Rewrit…

生来就爱笑 2024-08-21 03:28:58 4 0

.htaccess apache 中的模式重写似乎不起作用

我正在尝试使用 Openfire 服务器运行 iJab ,这需要我重定向 /http-bind请求 localhost:7070/http-bind。 我将 iJAb 文件夹复制到我的文档根目录中,…

故事还在继续 2024-08-21 01:33:46 2 0

PHP 与Apache - 解析 mod_rewrite url

我将服务器的 apache 配置为将每个请求重定向到 index.php,以便我可以使用如下 url: http://www.website.com/about/us 现在我需要解析 url 以确定每…

2024-08-21 01:07:11 4 0

mod_rewrite 被忽略/不起作用

我在设置的新 Apache 开发 PC 上遇到了一些 mod_rewrite 问题。 我已启用 mod_rewrite 作为 apache 模块并编辑了 conf 文件以允许重写,但是当我尝试…

乖乖公主 2024-08-21 00:47:02 3 0
更多

推荐作者

alipaysp_YnHJ1c0QKC

文章 0 评论 0

疏忽

文章 0 评论 0

葬花如无物

文章 0 评论 0

趁年轻赶紧闹

文章 0 评论 0

瀟灑尐姊

文章 0 评论 0

zhy_

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文