﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运维部落 &#187; 跳转</title>
	<atom:link href="http://help.vps12.com/tag/%e8%b7%b3%e8%bd%ac/feed" rel="self" type="application/rss+xml" />
	<link>https://help.vps12.com</link>
	<description>分享服务器运维及实践解决方案</description>
	<lastBuildDate>Sat, 25 Jan 2025 07:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>使用htaccess实现域名跳转</title>
		<link>https://help.vps12.com/801.html</link>
		<comments>https://help.vps12.com/801.html#comments</comments>
		<pubDate>Sat, 30 Mar 2013 17:06:52 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[编程实践]]></category>
		<category><![CDATA[网络产品]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[南非vps]]></category>
		<category><![CDATA[台湾vps]]></category>
		<category><![CDATA[日本vps]]></category>
		<category><![CDATA[美国vps]]></category>
		<category><![CDATA[跳转]]></category>
		<category><![CDATA[香港vps]]></category>

		<guid isPermaLink="false">http://blog.vps12.com/?p=801</guid>
		<description><![CDATA[要使用域名的统一，即使得vps12.com转向www.vps12.com，有很多办法，听说对于seo也有些好处！ ?View Code SHELL1 2 3 RewriteEngine on RewriteCond %{HTTP_HOST} ^vps12.com [NC] RewriteRule ^(.*)$ http://www.vps12.com/$1 [L,R=301] 还可以利用重定向功能实现url的跳转，例如： ?View Code SHELL1 2 3 RewriteEngine on RewriteCond %{HTTP_HOST} ^www.abc.com [NC] RewriteRule ^(.*)$ http://www.vps12.com/$1 [L,R=301]]]></description>
		<wfw:commentRss>https://help.vps12.com/801.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asp及php的url跳转代码实现</title>
		<link>https://help.vps12.com/517.html</link>
		<comments>https://help.vps12.com/517.html#comments</comments>
		<pubDate>Sat, 10 Nov 2012 17:50:05 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>
		<category><![CDATA[跳转]]></category>

		<guid isPermaLink="false">http://blog.vps12.com/?p=517</guid>
		<description><![CDATA[php语言环境下的跳转 ?View Code PHP1 2 3 4 &#60;?php header&#40;&#34;HTTP/1.1 301 Moved Permanently&#34;&#41;; header&#40;&#34;Location: http://www.vps12.com/&#34;&#41;; ?&#62; asp语言环境下的跳转 ?View Code ASP1 2 3 4 5 6 &#60;%@ Language=VBScript %&#62; &#60;% Response.Status=&#34;301 Moved Permanently&#34; Response.AddHeader &#34;Location&#34;, &#34; http://www.vps12.com/&#34; Response.End %&#62;]]></description>
		<wfw:commentRss>https://help.vps12.com/517.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP代码，判断域名跳转到指定的页面或地址</title>
		<link>https://help.vps12.com/199.html</link>
		<comments>https://help.vps12.com/199.html#comments</comments>
		<pubDate>Thu, 10 Nov 2011 14:13:03 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[编程实践]]></category>
		<category><![CDATA[跳转]]></category>

		<guid isPermaLink="false">http://blog.vps12.com/?p=199</guid>
		<description><![CDATA[我们经常在一些空间使用时要用到一个空间多个域名分配给不同的目录，也就是我们说的站中站。这时我们使用php或是asp就可以做到。代码如下： &#160; ?View Code PHP1 2 3 4 5 6 7 8 9 10 11 12 13 14 &#60;?php switch &#40;$_SERVER&#91;&#34;HTTP_HOST&#34;&#93;&#41; &#123; case &#34;www.vps12.com&#34;: header&#40;&#34;location:vps12/index.php&#34;&#41;; break; case &#34;www.dnsff.com&#34;: header&#40;&#34;location:dnsff/index.php&#34;&#41;; break; case &#34;www.dns173.com&#34;: header&#40;&#34;location:dns173/index.php&#34;&#41;; break; &#125; ?&#62; 如果用户访问 www.vps12.com 程序跳转至 空间目录下 vps12/index.php 如果用户访问 www.dnsff.com 程序跳转至 空间目录下 dnsff/index.php 如果用户访问 www.dns173.com 程序跳转至 空间目录下 dns173/index.php 如果虚拟主机不支持子目录绑定有效的办法就是这样了！希望对大家有帮助。]]></description>
		<wfw:commentRss>https://help.vps12.com/199.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
