Articles of redirect

Apache:使用不区分大小写的pathredirect?

我有以下redirect: RedirectPermanent /SCJ https://fin-iq.com 但它不适用于/scj , /sCj等有没有办法使这种情况下不敏感? 我尝试添加[NC,L],但页面崩溃。 谢谢!

haproxy SSL“失败鲸鱼”维护页面

我们正在使用haproxy的自定义错误页面function来显示“失败鲸鱼”维护页面,同时我们正在部署到我们的网站。 但是,由于haproxy不能显示SSL'd用户的自定义错误页面,我如何将用户redirect到非SSL连接,如果没有后端可用,显示“失败鲸鱼”?

Apache将子域redirect到特定的文件夹

我需要redirect来自所有的stream量 http://subdomain.domain.com/ 至 http://subdomain.domain.com/folder/ 当然,“文件夹”是一个特定的文件夹。 我试过这个: RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com$ RewriteRule ^.*$ http://subdomain.domain.com/folder/ [L] 但它不起作用。 怎么了?

将stream量转发到特定的端口到不同的IP

我的朋友有一个矿山工艺服务器与IP连接(206.217.128.131:25571)。 这显然不理想,因为真正的域名会更友好。 尽pipe我与一个拥有域名的朋友共享一个VPS,我们甚至有一个服务器的网站。 是否有可能通过端口25565(我的工艺默认端口)将stream量发送到我们的VPS,并让VPS将stream量redirect到我们的服务器IP? 像这样的连接是否每次都要通过VPS,或者只有当玩家连接时才能通过VPS? 我不希望我的朋友VPS因此而变慢。 谢谢您的帮助。

redirect到index.html.var

我的默认networking服务器是Apache,我在我的帐户上安装了节点并安装了Ghost平台。 节点在特定的端口上运行,因此我创build了一个.htaccess文件,将所有来自端口80的请求redirect到安装节点的端口。 问题是,在一台服务器上redirect工作正常,而在另一台服务器上,主页redirect到index.html.var可能是什么问题? 以下是我的.htaccess的代码 Options +FollowSymLinks -Indexes IndexIgnore * <IfModule mod_rewrite.c> RewriteEngine on # Simple URL redirect: RewriteRule ^(.*)$ http://mydomain.com:6366/$1 [P] </IfModule> 请让我知道我错过了什么。

Nginx 302redirect – 内部parsing

目前,我们有一个服务器,实现302redirect到服务器的一些内容。 例如,用户请求: http://origin1.example.com/m3ugen/segsrc/jet480.mp4 而这个服务器用302响应并服务于: http://origin1.example.com/Segments/HLS_TS/segsrc/jet480.mp4-20140831-142558.m3u8` 这对我们来说是有问题的,我们希望让Nginx处理这个更友好的用户,并与一些不处理302redirect的玩家合作。 我们想要的是: 用户请求http://frontend.example.com/hls/jet480.mp4.m3u8并由nginx接收。 Nginx请求http://origin1.example.com/m3ugen/segsrc/jet480.mp4 Nginx接收redirect代码302 http://origin1.example.com/Segments/HLS_TS/segsrc/jet480.mp4-20140831-142558.m3u8 Nginx向http://origin1.example.com/Segments/HLS_TS/segsrc/jet480.mp4-20140831-142558.m3u8发出请求,并直接向用户提供响应,而不进行任何302redirect。 我认为这可以用Nginx来完成,但我们对此没有太多的经验。 任何帮助将非常感激。 PD我们不能configuration原始服务器。 它使用Helix服务器,当为m3u8播放列表提供服务时,它会为每个文件添加一个时间戳。

Nginx的 – redirect老.php?id = …到SEO友好的url不会按预期redirect

我正在将旧式/category.php?id=4url的网站迁移到/ category / seo-friendly-slugurl。 rewrite ^/category.php?id=1$ /styles-de-bieres-belges/pils permanent; rewrite ^/category.php?id=2$ /styles-de-bieres-belges/bieres-blanches permanent; rewrite ^/category.php?id=4$ /styles-de-bieres-belges/lambics-et-gueuzes permanent; rewrite ^/category.php?id=5$ /styles-de-bieres-belges/ales-stouts-et-ipa permanent; rewrite ^/category.php?id=6$ /styles-de-bieres-belges/bieres-trappistes permanent; rewrite ^/category.php?id=7$ /styles-de-bieres-belges/bieres-d-abbaye permanent; rewrite ^/category.php?id=8$ /styles-de-bieres-belges/bieres-rouges-des-flandres permanent; rewrite ^/category.php?id=9$ /styles-de-bieres-belges/lambics-et-gueuzes permanent; rewrite ^/category.php?id=11$ /styles-de-bieres-belges/bieres-fruitees permanent; rewrite ^/category.php$ /styles-de-bieres-belges permanent; 但所有'/category.php?id=…'请求都会redirect到/styles-de-bieres-belges (最后一行)。 如果我删除这最后一行,它根本不redirect。 这个设置有什么问题?

奇怪的http – > httpsredirect虽然没有configuration

我正在运行Apache 2.2.15(CentOS 6.6)与一个仅HTTP域 demo.xml-director.info 使用wget我可以正确地检索内容 wget -S http://demo.xml-director.info –2015-01-05 13:31:41– http://demo.xml-director.info/ Resolving demo.xml-director.info (demo.xml-director.info)… 176.9.146.28 Connecting to demo.xml-director.info (demo.xml-director.info)|176.9.146.28|:80… connected. HTTP request sent, awaiting response… HTTP/1.1 200 OK Date: Mon, 05 Jan 2015 12:31:41 GMT Server: Zope/(2.13.22, python 2.7.6, linux2) ZServer/1.1 Content-Length: 20227 Expires: Sat, 01 Jan 2000 00:00:00 GMT Content-Type: text/html;charset=utf-8 X-Ua-Compatible: IE=edge,chrome=1 Content-Language: […]

将子域redirect到子域Apache2

假设我有一个IP地址为1.2.3.4的Web服务器。 我也有2个子域名: sth.city.eu inf.xyz.city.eu 我在Ubuntu服务器上使用Apache 2。 这是我的/etc/apache2/sites-enabled/site文件: <VirtualHost *:80> ServerName www.sth.city.eu ServerAlias sth.city.eu ServerAlias inf.xyz.city.eu ServerAlias www.inf.xyz.city.eu ServerAdmin webmaster@localhost DocumentRoot /var/www/city/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/city/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> LogLevel warn ErrorLog ${APACHE_LOG_DIR}/error_city.log CustomLog ${APACHE_LOG_DIR}/access_city.log combined </VirtualHost> 我想这样做:如果有人会去inf.xyz.city.eu ,服务器应该自动将他redirect到sth.city.eu (更改url)。 这是可能的 – […]

wordpress上openshift自定义域“太多redirect”错误

WordPress的openshift自定义域名“太多redirect”错误的WP – pipe理页面,在openshift默认域的作品。 我的自定义域是: https : //sesjau.tk/wp-admin 。 所以我在选项表中检查siteurl和home,都是http://sesjau.tk 我有同样的问题,但我不明白他是如何解决这个问题的。 你可以帮我吗?