重定向。

发布于 2025-02-03 08:22:33 字数 792 浏览 2 评论 0 原文

以下ws呼叫 应将重定向到播客寄养podigee

.htaccess

RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://www.training-deluxe.de/$1 [R=301,L]
RewriteCond %{SERVER_PORT} !^443$

#Whats wrong with the next line
RewriteRule /nlpdocs/podcast/feed/ https://coachingundwissenschaft.podigee.io/feed/mp3 [R=301,L]

RewriteRule /coaching_ausbildung/gesundheitscoach_somatic_release_achtsamkeit.html https://rubin-institut.de/health-practitioner-und-gesundheitscoach/ [L,R=301] 

RewriteRule ^(nlpdocs/.*)$ https://www.rubin-institut.de/$1 [R=301,L]
RewriteRule ^(.*)$ https://rubin-institut.de/$1 [L,R=301] 

重定向转到鲁宾·伊斯蒂特/nlpdocs/podcast ...

我无法获得线索

Following ws call https://training-deluxe.de/nlpdocs/podcast/feed/
should be redirected to podcast hoster podigee

.htaccess

RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://www.training-deluxe.de/$1 [R=301,L]
RewriteCond %{SERVER_PORT} !^443$

#Whats wrong with the next line
RewriteRule /nlpdocs/podcast/feed/ https://coachingundwissenschaft.podigee.io/feed/mp3 [R=301,L]

RewriteRule /coaching_ausbildung/gesundheitscoach_somatic_release_achtsamkeit.html https://rubin-institut.de/health-practitioner-und-gesundheitscoach/ [L,R=301] 

RewriteRule ^(nlpdocs/.*)$ https://www.rubin-institut.de/$1 [R=301,L]
RewriteRule ^(.*)$ https://rubin-institut.de/$1 [L,R=301] 

Redirect goes to rubin-institut/nlpdocs/podcast...

I cant get the clue

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丑丑阿 2025-02-10 08:22:33

有几个问题...

 重新创新
REWRITECOND%{server_port}!= 443
重写 ^(。*)$ https://www.training-deluxe.de/qunqurque/qunquly1 [r = 301,l]
REWRITECOND%{server_port}!^443 $
 

您需要删除上面的第二/最后一个 rewriteCond 指令,因为这将破坏以下规则。 RewriteCond 指令是条件,适用于以下的第一个重写指令。

 #下一行错误
重写/nlpdocs/podcast/feed/https://coachingundwissenschaft.podigee.io.io/feed/mp3 [r = 301,l]
 

重写指令的第一个参数采用正则表达式(REGEX),如您在以后的规则中使用的那样。这不是一个简单的URL路径。而且,重要的是,在 .htaccess Rewriterule staters 匹配的URL路径不是从斜线开始。 (您已经在后面的规则中省略了斜线前缀,该规则实际上是“工作”的。)

应该是这样的:

RewriteRule ^nlpdocs/podcast/feed/$ https://coachingundwissenschaft.podigee.io/feed/mp3 [R=301,L]

您需要在测试之前清除浏览器缓存,因为错误的301(永久)重定向将由该浏览器进行缓存。浏览器。首先使用302(临时)重定向测试,以避免缓存问题。

您还需要检查以下规则,因为看起来它会遇到相同的问题。

参考:

There's a couple of issues...

RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://www.training-deluxe.de/$1 [R=301,L]
RewriteCond %{SERVER_PORT} !^443$

You need to remove that 2nd/last RewriteCond directive above as that will break the rule that follows. RewriteCond directives are conditions that apply to the first RewriteRule directive that follows.

#Whats wrong with the next line
RewriteRule /nlpdocs/podcast/feed/ https://coachingundwissenschaft.podigee.io/feed/mp3 [R=301,L]

The first argument to the RewriteRule directive takes a regular expression (regex) - as you've used in later rules. It is not a simple URL-path. And, importantly, in .htaccess the URL-path matched by the RewriteRule pattern does not start with a slash. (You have omitted the slash prefix in the later rule that is evidentally "working".)

It should be like this instead:

RewriteRule ^nlpdocs/podcast/feed/$ https://coachingundwissenschaft.podigee.io/feed/mp3 [R=301,L]

You will need to clear your browser cache before testing since the erroneous 301 (permanent) redirect will have been cached by the browser. Test first with 302 (temporary) redirects to avoid caching issues.

You will also need to check the rule that follows, as that looks like it would have the same problem.

Reference:

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