mod-alias

mod-alias

文章 0 浏览 7

Apache网站从别名转换为VirtualHost

我必须接管由不再在那里的同事配置的内部Web服务器。我们的开发人员团队要求我将应用程序URL从别名转换为a virtualhosts (子域名命名)系统。例如: …

睫毛上残留的泪 2025-02-04 03:48:30 6 0

.htaccess 301重定向与排除无效

我尝试使用简单的301重定向 从 domain1.com/folder/到 domain2.com/, 但不包括 domain1.com/folder/subfolder 我在.htaccess中使用以下代码: Redire…

淡笑忘祈一世凡恋 2025-01-23 01:46:03 5 0

HTACCESS重定向单页到不同域而没有参数

我有一个包含以下 htaccess 文件的网站: RewriteCond %{THE_REQUEST} \s/+(.+?)\index.html/?[\s?] [NC] RewriteRule ^ /%1 [R=302,NE,L] RewriteCon…

离旧人 2025-01-20 20:07:13 3 0

retirectMatch没有URL的最后一部分

我有这个 RedirecMatch RedirectMatch 301 ^/en/products/(.*)/(.*)/(.*)$ https://www.example.com/en/collections/$2/ 如果我访问, https://www.ex…

日裸衫吸 2025-01-17 16:21:42 4 0

Apache:如何在 Alias 中使用重写引擎

我有这个别名配置: Alias /test/ "D:/WWW/Test/" Order allow,deny Allow from all 然后在 D:/WWW/Test/ 目录中,我将 .htaccess 放入以下配置: Rew…

冷默言语 2025-01-04 19:54:39 3 0

Apache 重定向永久用于字符串中包含数据的 URL(问号)

我正在寻找一个 Apache 重定向,其中源 URL 中有一个问号。 Redirect permanent /course/view.php?id=68 http://exmaple.com/page.php 我尝试过逃避问…

太阳男子 2025-01-03 17:58:30 3 0

重定向到重写的 URL

好的,我正在为自定义 PHP 购物车重写一些页面 URL。 我有以下规则: RewriteRule ^category/([0-9]+)/([a-z-]+)$ /store.php?cat=$1 [L] RewriteRule…

不爱素颜 2024-12-18 05:30:52 3 0

Apache mod_alias / .htaccess,RedirectMatch 与 RewriteRule 上的标头不同

您知道为什么使用时会丢失授权标头吗 RedirectMatch .*service_auth /service/ vs RewriteRule 上的 RewriteEngine ^(.*service_auth)$ /service/ [QS…

浮华 2024-12-11 13:54:08 6 0

使 mod_alias 与 mod_rewrite 一起使用

mod_alias 规则: /water /local/path1/water 目标 URL: http://www.mysite.com/water/css/style.css http://www.mysite.com/water/js/java.js 实际 …

小镇女孩 2024-12-03 12:45:18 7 0

为什么 htaccess 重定向被否决?

我有: 重定向 301 /blog/?p=1 http ://www.new-site.com/blog/2000/10/myslug/ 工作正常,除非后面跟着: RedirectMatch 301 ^/blog(/)?(.*)$ http:/…

白衬杉格子梦 2024-12-03 11:34:13 6 0

Apache 别名虚拟主机

我有两个应用程序在同一台服务器上运行,我希望从 url 中的子路径(即)提供一个应用程序: foo.com -> /var/www/foo foo.com/bar -> /var/www/bar 我…

筑梦 2024-12-01 12:23:39 7 0

.htaccess mod_alias 和 mod_rewrite 重定向被忽略

我想将所有请求重定向到我的index.php脚本,这样http://mysite/之后的所有内容都会通过到 index.php 作为 url 参数。例如,http://mysite/moo.css 应…

夜声 2024-11-29 18:50:55 4 0

Apache ErrorDocument绝对路径

我尝试对域及其所有子域使用相同的 404 ErrorDocument, 子域在 /var/www/ 路径中都有自己的目录, Apache ErrorDocument 指令需要一个相对路径(相对…

歌枕肩 2024-11-27 06:11:05 5 0

如何使用参数重定向 url?

我在尝试将 mod_rewrite 集成到现有页面中时完全不知所措。目前,我正在从头开始构建一个新站点,并且有一些漂亮的干净 url,例如: http://www.examp…

極樂鬼 2024-11-15 15:14:13 8 0

Apache 重定向问题 - mod_rewrite 或 mod_alias

我有一个特定的需求: example.com/store/{location} 必须重定向到 example.com/store2/{location} 这需要重定向,而不仅仅是网址“重写”,所以我猜…

書生途 2024-11-03 11:39:05 8 0
更多

推荐作者

李珊平

文章 0 评论 0

Quxin

文章 0 评论 0

范无咎

文章 0 评论 0

github_ZOJ2N8YxBm

文章 0 评论 0

若言

文章 0 评论 0

南…巷孤猫

文章 0 评论 0

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