我正在尝试将www.example.comredirect到https://www.example.wordpress.com上的托pipe博客。 域名redirect工作,但给我一个403错误,因为它redirecthttp到https。 example.com永远不会被用在redirect之外,我不想为它获得一个ssl证书。 也有类似的问题(例如, htaccessredirect到https ),但是这些都解决了问题的两个部分之一( www.example1.com到www.example2.com或http://domain1.com到http://domain1.com )。 这是我目前的.htacess。 如何添加一些实际处理https问题而不会搞乱域redirect的内容? RewriteEngine on RewriteCond %{HTTPS} off RewriteRule (.*) https://www.example.wordpress.com [R=301,L] 更新:我的工作.htaccess文件是这样的; 显然wordpress.com做的redirect到https本身(我知道,但不能够以前工作): Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www.curiouscitytc.com$ [NC] RewriteRule ^(.*)$ http://www.curiouscommute.wordpress.com/$1 [R=301,L]
我已经在BlueHost(共享服务器)上build立了一个网站,我已经在一个子目录中设置了webmail。 但每次我使用URL mywebsite.com/webmail时,它都会被重新路由到mywebsite.com:2095,由于端口被阻塞,办公室防火墙将不会连接到该网站。 任何人都可以协助和build议如何redirect服务器上的stream量到端口80? 我已经读过,redirect可以通过一个.htaccess文件来完成,但我不太确定如何编辑规则。 任何援助高度赞赏,更好的方法也是受欢迎的。
我想通过重新引导一些URL模式强制SSL www。 例如, 强制SSL wwwredirect: http://example.com/asia/fewf -> https://www.example/asia/fewfwe http://example.com/africa/foo/bar/1/ -> https://www.example/africa/foo/bar/1/ 不要做任何事: http://example.com/europe/1 -> http://example.com/europe/1 http://www.example.com/europe/1 -> http://www.example.com/europe/1 我试着添加这个: RedirectMatch 301 ^(/asia[^/]*/.*)$ https://www.example.com$1 但是,它会导致错误:“太重要的redirect”
我试图让HAProxyredirect到正确的URI的情况下,请求的URI是非www或非https。 我正在装入的问题是,它重新定向,只要它击中一条线,导致多个redirect。 这是我的configuration: *snip* frontend traffic-in bind *:80 bind *:443 ssl crt /etc/haproxy/certificate.bundled.pem reqrep ^(.*)[^/]$ \1/ redirect prefix https://www.example.com 301 if { hdr(host) -i beste.nl } redirect scheme https code 301 if !{ ssl_fc } *snip* 如果我要访问http://example.com ,首先会将我redirect到http://example.com/ ,然后是https://www.example.com 。 我希望它redirect一次,而不是几次,因为这会损害我们的Google排名。 我怎么能redirect请求到一个URI的尾部的斜杠AND ssl?
我遇到过所有GPO都应用于某些用户帐户的情况,但是由于检测到速度较慢的链接,因此只有重要的GPO才能应用于其他用户。 我们的办公室位于不同的海岸,并通过VPN隧道连接。 直到本地服务器在每个办公室都可用,其中一个办公室正在连接到其他的文件,域控制器等。办公室之间的链接是10Mbps和120ms ping。 通过configuration组策略慢速链接检测并将其设置为0( Computer Configuration\Policies\Administrative Templates\System\Group Policy\Configure Group Policy slow link detection ),我已经禁用似乎存在此问题的工作站的Computer Configuration\Policies\Administrative Templates\System\Group Policy\Configure Group Policy slow link detection 。 这样做甚至在运行gpupdate /force后也无济于事。 共享命名空间也不可用,并且似乎处于脱机模式。 但是,避免名称空间时,可以访问远程办公室中每个服务器的共享。 另一方面,通过networking映射驱动器(应用策略)的dfs命名空间可以被访问而没有问题。 工作站:Windows 10(也试过Windows 8 / 8.1)服务器:Windows Server 2012 R2以太网:两个办公室之间的OpenVPN隧道10Mbps〜120ms ping
我想赞美的url,所以我创build了以下.htaccess文件: Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f #RewriteRule ^target/([a-zA-Z0-9]+)/$ index.php?target=$1 RewriteRule ^quienes-somos$ index.php?target=about RewriteRule ^el-equipo$ index.php?target=equipo RewriteRule ^a-quien-va-dirigido$ index.php?target=dirigido RewriteRule ^programa-integrativo-para-directivos$ index.php?target=pid RewriteRule ^modulos-especificos$ index.php?target=modulos RewriteRule ^espacio-empresa$ index.php?target=empresa RewriteRule ^espacio-individual$ index.php?target=individual RewriteRule ^trabajo-bioenergetico$ index.php?target=bionergetico RewriteRule ^([a-zA-Z0-9]+)$ index.php?target=$1 请求时一切都很正常: http://inside.amimusa.org/modulos-especificos 但是当请求是: http://inside.amimusa.org/modulos-especificos/ 该页面未find。 我添加了一个新的行.htaccess允许结束斜线如下 RewriteRule ^(.+)/$ /$1 [L] 和 http://inside.amimusa.org/modulos-especificos/ 工作,但没有find静态资源: "NetworkError: […]
我的服务器上有一个NGINX背景。 我不明白为什么我的规则不起作用。 如何redirect或重写它,以便我可以打开具有相同内容的URL,例如: http://www.example.com/my_dir/value/ 如果我有这个url,例如: http://www.example.com/my_dir/filename.php?parameter=value 我尝试了一些解决scheme,但他们没有工作: Case #1: location /my_dir/ { if ($args ~* "filename.php/?parameter=value1") { rewrite ^ http://www.example.com/my_dir/$arg_param1? last; } } Case #2: rewrite ^/my_dir/(.*)$ /filename.php?parameter=$1 last; Case #3: location /my_dir { try_files $uri $uri/ my_dir/filename.php?$args; } Case #4: location /my_dir/ { rewrite ^/my_dir/filename.php?parameter=(-+([a-zA-Z0-9_-]+))?\$ /filename.php?parameter=$1 last; } 那可能吗? 我必须configuration我的PHP文件才能正常工作吗? 有任何想法吗? 谢谢!
在过去,我有以下configurationLighted,这将允许我redirect我自己的一些辅助域到我的主域。 $HTTP["host"] =~ "superdomain\.net|superdomain\.eu" { url.redirect = ( "^/(.*)" => "http://mything.com/" ) } 这工作正常。 如果有人试图去superdomain.net他会被redirect到http://mything.com并保持完整的URL查询。 但是,今天我试图设置子域webmail.superdomain.net和点燃匹配webmail.superdomain.net的规则之前,并将用户redirect到http://mything.com 。 该子域的configuration是: $HTTP["host"] == "webmail.superdomain.net" { var.domain = "webmail.superdomain.net" include "/var/webconfig/config/template/domain-generic.conf" } 我把这个规则放在另一个之前,但仍然没有运气。 有没有办法可以将第一条规则更改为仅匹配域而不是子域? 谢谢。
我正在尝试在我的系统上使用Apache HTTP Server的mod_alias和core创build一个Redirect : # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.1 (Maipo) # rpm -q httpd httpd-2.4.6-31.el7_1.1.x86_64 # 要求是redirect所有的请求,除了请求到/server-status # cat /etc/httpd/conf.d/_default.conf <VirtualHost *:80> ServerName _default_ <LocationMatch "^/!(server-status)(.*)?"> Redirect / http://X/ </LocationMatch> </VirtualHost> # 我相信我的问题是在正则expression式的地方,因为无论我打哪个URL,我都会得到404。
我想发送指向remote.mydomain.com的stream量到一个内部IP地址的Windows服务器。 来自外部的stream量击中了我们的公共IP地址,并被导向到我们的Ubuntu服务器14.04盒,我们的网站也在这里被托pipe。 目前我们正在使用vhost proxypass将stream量redirect到Windows服务器: <VirtualHost *:80> ServerName remote.mydomain.com ProxyPass / http://172.18.1.8:80/ ProxyPassReverse / http://172.18.1.8:80/ </VirtualHost> 但问题是,浏览器显示这样的内部IP地址: http://172.18.1.8/Remote/….. 我也需要在窗口框中设置SSL。 任何input将不胜感激。 解: 在vhost.conf中添加“ProxyPreserveHost On” 和 ProxyPreserveHost On ProxyPass /remote http://172.18.1.8:80/ ProxyPassReverse /remote http://172.18.1.8:80/ 在域本身的vhost.conf中,它现在起作用了。