htaccess的重定向不是隐形 [英] Htaccess redirect not invisible

查看:209
本文介绍了htaccess的重定向不是隐形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了很多htaccess的重定向,但由于某些原因,这其中不子域没有重定向到一个子文件夹。

I've done many htaccess redirects, but for some reason this one doesn't redirect the subdomain to a subfolder.

RewriteCond %{HTTP:Host} ^((?!www\.)(.+)|(?:www\.)(.+))\.(timseverien\.nl)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? /subdomains/%2%3%5 [L]

当它重定向我可以看到 /子域/ X / 中,我不希望我的地址栏。 我之所以有这个在我的htaccess是因为我最亲爱的主人是一个完整的fuckup考虑域和子域。

When it redirects I can see /subdomains/x/ in my url bar which I don't want. The reason I have this in my htaccess is because my dearest host is a complete fuckup considering domains and subdomains.

所以,我的问题是:为什么是重定向可见的,我能做些什么来改变它

So, my question is: Why is the redirect visible and what can I do to change it?

推荐答案

这个问题是不是在htaccess的,但在我的主机的DNS。我移动十一月第一个!

The problem wasn't in the .htaccess, but in the DNS of my host. I'm moving the first of November!

这篇关于htaccess的重定向不是隐形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆