mod-rewrite

mod-rewrite

文章 7 浏览 110

用户帐户的 URL 重写

目前,我们将domain.com/username 重定向到domain.com/setsession.asp?u=username,然后重定向到domain.com/theapp 上的应用程序。 这意味着用户始终…

柠檬心 2024-09-02 00:22:04 2 0

删除多个尾部斜杠 mod_rewrite

我知道这个问题仅在这个网站上就被问过很多次,但浏览相关帖子我找不到解决方案。尝试删除域后的多个尾部斜杠。以下 mod_rewrite 表达式似乎适用于 ht…

本宫微胖 2024-09-01 23:03:26 4 0

为分层类别编写 .htaccess mod 重写

我需要重写我的分类广告目录的网址 我有 4 种类型的链接 /City ==&gt显示城市/City/Cat1中的所有广告 ==&gt 中的所有广告 显示城市 + 类别/City/Cat1/…

街道布景 2024-09-01 21:03:36 3 0

mod_rewrite 带有问号和 & 符号(使用 PHP)

我有一个基于 PHP 的 Web 应用程序,我正在尝试应用 Apache 的 mod_rewrite 。 原始 URL 的格式为: http://example.com/index.php?page=home&ampx= 5…

和我恋爱吧 2024-09-01 21:02:51 0 0

重写规则问题

有什么方法可以使用 RewriteRule 显示这些链接: /articles_history.php /articles_geography.php as /articles/history.html /articles/geography.ht…

趁年轻赶紧闹 2024-09-01 20:31:40 5 0

htaccess mod 重写将 http://www 更改为 http://www

我想将这样的调用替换为: www.mysite.com/sub/file.php?param1=x&ampparam2=http://www.someurl.com 为: www.mysite .com/sub/param1/param2 Param …

护你周全 2024-09-01 18:48:41 1 0

Mod_Rewrite类别目录

我想将类别从根目录转发到index.php;这是例子; domain.com/en/category1/category2/ ---&gt index.php?lang=en&ampcat1=category1&ampcat2=category…

白首有我共你 2024-09-01 17:39:47 1 0

Mod Rewrite - 根据是否有 GET 参数进行重定向

我想将这些 URL 重定向: http://example.com/search 到 http://example.com/?page=search http:// example.com/search?q=keyword 到 http://example.…

酒解孤独 2024-09-01 17:35:27 0 0

Jetty RewriteHandler 和 RewriteRegexRule

我正在尝试重写 servlet 的 URL。 URL 被正确重写,但之后上下文不匹配。知道如何让它发挥作用吗? RewriteHandler rewriteHandler = new RewriteHand…

烟凡古楼 2024-09-01 17:08:59 2 0

使用 RewriteCond 模拟 2 级 If-Else

我正在尝试了解 RewriteCond,并希望将任何请求重写到静态 html 页面(如果存在)或特定的 index.php(只要请求的文件不存在)。 为了说明逻辑: if H…

风吹雨成花 2024-09-01 16:35:06 2 0

Apache Rewrite 和 Alias 组合

我们遇到了一个问题,我们有一个现有的别名,我们想添加一个重写规则来捕获不区分大小写的拼写的所有变体,即: URL: http://www.example.com/example…

夏の忆 2024-09-01 16:04:08 4 0

将 cat-art.php 更改为 cat/art.php

您好,我在更改网址时遇到问题。我有文件:cat-art.php(cat-类别,art-文章标题),我希望更好地访问它们:cat/art.php,所以我在 .htaccess 中编写…

李不 2024-09-01 16:02:07 3 0

htaccess 将 *.domain.com 重定向到 www.domain.com/index.php

如果用户输入:domain.com 或 www.domain.com,我想将用户重定向到 www.domain.com/index.php。我对htaccess一无所知。这是我发现的,但我不知道如何…

转身泪倾城 2024-09-01 15:44:33 0 0

url重写帮助

我正在使用 url 重写,这 RewriteRule ^mobiles/(.*)$ /mobile_rating.php?alias=$1 [L,B] 对我来说效果很好,就像 /mobiles/nokia70 /mobile_rating.…

安静被遗忘 2024-09-01 11:48:59 1 0

由于 mod_rewrite,DirectoryIndex 无法工作?

对 www.domainname.com 和domainname.com 的请求应显示index.html,而不是像现在那样显示index.php。 这是 .htaccess 文件: # -FrontPage- IndexIgno…

染墨丶若流云 2024-09-01 11:29:13 3 0
更多

推荐作者

alipaysp_b7SHQYtKbj

文章 0 评论 0

疯到世界奔溃

文章 0 评论 0

笨死的猪

文章 0 评论 0

西瑶

文章 0 评论 0

灵芸

文章 0 评论 0

故事与诗

文章 0 评论 0

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