Articles of redirect

子网站不工作没有www在它前面

我有一个在cpanel之前的子域设置(sub.domain.comredirect到domain.com/sub/),突然间我今天突然发现它是在浏览器中重写URL到www.domain.com/sub/,而不是只是把它留在sub.domain.com。 我不知道是什么问题,但决定删除我的子域,并在cPanel重新创build它。 现在我只能访问www.sub.domain.com(sub.domain.com产生一个服务器没有find错误)。 编辑:问题似乎与.htaccess文件。 删除后,事情恢复正常。 但是现在我的新问题是如何正确configuration.htaccess文件。 我最初调整了它,试图完成以下内容: 我有三个文件夹,live,staging和dev: 1)domain.com或www.domain.com的请求被定向到domain.com/live(并且用户看到的URL总是被重写为www.domain.com)。 2)请求staging.domain.com和dev.domain.com或分别定向到domain.com/staging和domain.com/dev,并且用户在浏览器中看到staging.domain.com或dev.domain.com 。 3)当我将其添加到cPanel中时,任何子域通常都不会被浏览器重写。 我当前的.htaccess文件完成数字1很好,但重写staging.domain.com到www.domain.com/staging等等。 RewriteCond %{HTTP_HOST} !^www\.domain\.com$ RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] RewriteRule ^$ /index.html RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !\..+$ RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://www.domain.com/$1/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/live/ RewriteRule ^(.*)$ /live/$1

URL Rewrite正在向IIS7中的规范redirect添加HTTPS

我在我的Web.config中定义了以下规则: <rule name="Enforce canonical hostname" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" negate="true" pattern="^www\.mydomain\.org$" /> </conditions> <action type="Redirect" url="http://www.mydomain.com/" redirectType="Permanent" /> </rule> 我所经历的奇怪的是… 看来我被redirect到https://www.mydomain.com/ ,这导致我的浏览器挂起。 我没有打开SSLencryption,也没有任何特殊的授权规则。 有问题的Web服务器位于F5负载均衡器的后面。 有任何想法吗?

在Active Directory中更改用户的姓氏以及对redirect的文件夹的影响

我有一个运行在Windows Server 2008数据中心上的Active Directory域。 我有这个用户谁结婚,并改变了她的姓氏。 我已经在Exchange 2007中更改了她的姓氏,为她的电子邮件创build了一个新的别名,并将其分配为主SMTP地址,所以我认为Exchange已经被处理了。 现在,我还没有改变她的用户名(惯例是flastname),因为我已经在这个站点redirect了脱机文件的文件夹。 用户正在使用基于Windows 7的笔记本电脑,并在现场和远程使用它,在这里她使用Cisco VPN客户端进行VPN连接。 在此环境中更改她的用户名有哪些含义和预防措施? 如果我继续并改变她的用户名,redirect的文件夹会将她login到一个空白的configuration文件? 或者是否会使用她的SID将她redirect到她的个人资料文件夹?

鱿鱼3服务器没有跟随301和302redirect?

我有一个Squid3服务器设置工作正常,logging一切,但每次用户访问一个网站,301或302redirect响应,请求死亡,不redirect用户的浏览器。 我所做的所有研究都提到了使用rewrite_program或类似的方法,但这似乎更多的是拦截用户请求并在重新获取它们之前重写它们。 对我来说,似乎很奇怪,鱿鱼会需要这样的外部redirect。 难道我做错了什么? 下面的configuration。 acl QUERY urlpath_regex cgi-bin \? cache deny QUERY # general access acl localhost src 127.0.0.1 acl localnet src 10.0.0.0/8 acl Safe_ports port 80 443 1025-65535 # User Groups acl blocked_ips src "/etc/squid3/ip.addresses.blocked" acl fullaccess_ips src "/etc/squid3/ip.addresses.fullaccess" http_access allow fullaccess_ips http_access allow blocked_ips visible_hostname [mydomainhere].com always_direct allow all forwarded_for off error_directory […]

用户无法searchredirect的configuration文件文件夹

我们所有的客户都使用Windows 7.我们的文件服务器是Server 2008 R2。 我们已将用户的个人资料文件夹(我的文档,我的图片,collections夹,我的video)redirect到文件服务器上的共享( \\server\UserProfiles\ )。 UserProfiles共享内部是每个用户的文件夹。 当我们创buildUserProfiles文件夹时,我们根据MS的build议/最佳实践向用户组提供了以下权限: 创build文件夹/追加数据,列出文件夹/读取数据,读取属性,遍历文件夹 应用于:仅此文件夹 创build者/所有者只能完全控制子文件夹和文件。 我们为configuration文件文件夹启用了离线文件,并禁用了离线文件的索引。 无论何时用户试图search他们的文档,他们都会立即得到“没有任何项目与您的search相匹配”的回应。 我们这些pipe理员(如我),我们可以很好地search我们的文件。 我跑过这个线程,但是我们的用户已经拥有读取/移动根文件夹的权限。 我还能检查什么来解决这个问题? 这影响了我们所有的用户。

为什么在存储服务器上访问时redirect的用户configuration文件是只读的?

我为我的域中的用户configuration文件设置了文件夹redirect。 当我login到用户configuration文件数据所在的服务器时,我注意到一些奇怪的现象。 我所有的redirect文件夹在这个系统上是只读的。 例如,Firefox有这个INI文件: \\windows.oliver.de\UserData\Profiles\OliverSalzburg\AppData\Roaming\Mozilla\Firefox\profiles.ini \\windows.oliver.de\UserData将是包含一个条目的DFS名称空间,这些条目指向我的服务器storage.windows.oliver.de上的共享卷。 当login到域中的任何系统时,我将能够写入.ini文件就好了。 login到storage.windows.oliver.de ,我将无法写入它。 当我尝试启动FirefoxPortable时,也会显示这一点:

如何在保持地址栏中的URL的同时将根目录redirect到子目录

我有一个像这样的文件夹结构的nginx设置: – www |- splash |- blog www是根文件夹。 我想将访问http://example.com用户redirect到splash文件夹。 但我不希望地址栏中的url更改为http://example.com/splash 。 地址栏中的url仍应为http://example.com 。 此规则只适用于用户访问根文件夹。 同时访问blog文件夹将像往常一样通过: http://example.com/blog : http://example.com/blog 。 我如何做到这一点? 到目前为止,我的conf是如下:(他们不工作btw,URL被改变) server { listen 80; server_name www.example.com; root /www; location = / { rewrite ^/(.*)$ splash/$1 permanent; } }

nginxredirect/2013/04/test.html到/testing – 不工作

我一直在精神上这个。 如何将/2013/04/test.html这样的urlredirect到/test in nginx? 我试过这个:但不起作用: server { location /2013/05/test.html { return 301 http://$server_name/test; } } 我已经执行了一些testing – 出于某种原因,在configuration行的位置部分中没有.html扩展名的任何url都将正确redirect,但只要将.html放置在位置kaboom中,就会停止工作。 任何想法,为什么这是? 谢谢!

我可以将Network Solutions apex域redirect到www进行SSL连接吗?

我正在Heroku上运行一个网站,我的客户通过Network Solutions注册了一个自定义域名。 该网站运行在普通的HTTP和SSL上。 由于其分布式特性,Heroku要求自定义域名指向其服务器使用CNAME DNSlogging,针对www.example.com,而不是顶点Alogging,指向一个特定的IP地址。 因此,站点需要将apex域redirect到www子域; http://example.com成为http://www.example.com 。 而且, https://example.com需要redirect到https://www.example.com 。 一切似乎根据他们的文档( https://devcenter.heroku.com/articles/ssl-endpoint )在Heroku方面正确设置。 在configuration了DNS的networking解决scheme一侧,有一个CNAME通配符logging,指向所有子域到Heroku的SSL端点地址: CNAME * example-1234.herokussl.com 要使redirect工作从apex域到www子域,我按照networking解决scheme提供的方向: http : //www.networksolutions.com/support/how-to-forward-your-network-solutions-domain-name免费博客服务/ 。 这导致以下Alogging: @ none 205.178.189.129 作为这一切的结果, http://example.com正确地redirect到http://www.example.com 。 但是, https://example.com不仅不redirect,而且超时: % curl -kvI https://example.com * About to connect() to example.com port 443 (#0) * Trying 205.178.189.129… Operation timed out * couldn't connect to […]

IIS web.config旧URL到新的URLredirect

我是新来redirect,并很难得到这些工作,我有一个旧站点需要redirect到一个新的网站,相同的域名,但不同的文件夹和域string约1400的URL。 这是我目前没有工作,任何帮助,不胜感激。 谢谢 <rule name="Redirect0001" patternSyntax="ExactMatch" stopProcessing="true"> <match url="www.sitename.com/index.html/_10_12_Slotted_Screwdriver_Bit_2_long?SCREEN=product_ordering&amp;ScreenID=2464&amp;ProductID=952" /> <conditions> <add input="{HTTP_HOST}{REQUEST_URI}" pattern="www.sitename.com/index.html/_10_12_Slotted_Screwdriver_Bit_2_long?SCREEN=product_ordering&amp;ScreenID=2464&amp;ProductID=952" /> </conditions> <action type="Redirect" url="http://www.sitename.com/items.aspx?category=Screwdriver+Bits%2c+Nutsetters+%26+Holders&amp;id=203" /> </rule>