一个域名捆绑一个网站 用户打开我的域名后跳转到指定网站 然后 自动复制该页面信息 发送到我邮箱!这样可以做到吗?
æå¼ååAèªå¨è·³è½¬å°ååBï¼å¯ä»¥éç¨ç½ç«301跳转çæ¹å¼ï¼
IISä¸ç´æ¥301设置
Internetä¿¡æ¯æå¡ç®¡çå¨ -> èæç®å½ -> éå®åå°URLï¼è¾å ¥éè¦è½¬åçç®æ URLï¼å¹¶éæ©âèµæºçæ°¸ä¹ éå®åâã
è¿ä¸ªéè¦æå¡å¨ç´æ¥æä½ï¼å¾å¤ç©ºé´åä¸ä¼ç»åã
ä»äºç©ºé´ç®¡çç¨åºåæ¹æ³åä¸ç¸åï¼ä¾å¦ä¹åçWEBæä½ç®¡ç æå¯è½å¯¼è´301é´æ¥å¤±ææ以å¦æä¸æ¯èªå·±ç¬ç«æå¡å¨ ä¸å»ºè®®ç´æ¥æä½ãæ¡æ¡å¤§è·¯éç½é©¬çä¸ï¼
éç¨isapi-rewirteç»ä»¶ ç伪éæå®å ¨ç¬ç«ï¼å¯ä»¥ç´æ¥å¨å伪éæè§åæ件httpd.ini å ä¸301跳转代ç ç«å³çæã详解ï¼å©ç¨ ISAPI Rewrite å301æ°¸ä¹ éå®åã
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteEngine On
RewriteCond Host: ^boaer\.com$
RewriteRule (.*) http\://www\.boaer\.com$1 [I,RP]
注ï¼----URLæ ååç301éå®åï¼ä»¥ä¸ä»£ç ï¼éè¦åå¨å ¶ä»URL-rewrite代ç ä¹åã
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteEngine On
RewriteCond Host: ^boaer\.com$
RewriteRule (.*) http\://www\.boaer\.com$1 [I,RP]
注ï¼----URLæ ååç301éå®åï¼ä»¥ä¸ä»£ç ï¼éè¦åå¨å ¶ä»URL-rewrite代ç ä¹åã
2ãASPä¸ç301转å代ç
<%@ Language=VBScript %>
<%
Response.Status=â301 Moved Permanentlyâ
Response.AddHeader âLocationâ, âhttp://www.*****/***/301/â
%>
3ã转å代ç
<script runat=âserverâ>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = â301 Moved Permanentlyâ;
Response.AddHeader(âLocationâ,âhttp://www.*****.cn/***/301/â);
}
</script>
4ãPHPä¸ç301转å代ç
header(âHTTP/1.1 301 Moved Permanentlyâ);
header(âLocation: http://www.*****.cn/***/301/â);
exit();
5ãCGI Perlä¸ç301转å代ç
$q = new CGI;
print $q->redirect(âhttp://www.*****.com/â);
6ã转å代ç
<%
response.setStatus(301);
response.setHeader( âLocationâ, âhttp://www.*****.cn/â );
response.setHeader( âConnectionâ, âcloseâ );
%>
7ã转å代ç
æ°å»º.htaccessæ件ï¼è¾å ¥ä¸åå 容ï¼éè¦å¼å¯mod_rewriteï¼ï¼
1ï¼å°ä¸å¸¦WWWçåå转åå°å¸¦WWWçååä¸
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^boaer.cn [NC]
RewriteRule ^(.*)$ http://www.*****.cn/$1 [L,R=301]
2ï¼éå®åå°æ°åå
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ http://www.*****.cn/$1 [L,R=301]
3ï¼ä½¿ç¨æ£åè¿è¡301转åï¼å®ç°ä¼ªéæ
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^news-(.+)\.html$ news.php?id=$1
å°news.php?id=123è¿æ ·çå°å转åå°news-123.html
8ãApacheä¸vhosts.confä¸é ç½®301转å
为å®ç°URLè§èåï¼SEOé常å°ä¸å¸¦WWWçåå转åå°å¸¦WWWååï¼vhosts.confä¸é 置为ï¼
<VirtualHost *:80>
ServerName www.*****.cn
DocumentRoot /home/lesishu
</VirtualHost>
<VirtualHost *:80>
ServerName lesishu.cn
RedirectMatch permanent ^/(.*) http://www.*****.cn/$1
</VirtualHost>
Apacheä¸é¤äºä»¥ä¸2ç§æ¹æ³ï¼è¿æå ¶ä»é ç½®æ¹æ³åå¯éåæ°ï¼å»ºè®®é 读Apacheææ¡£ã
IISä¸ç´æ¥301设置
Internetä¿¡æ¯æå¡ç®¡çå¨ -> èæç®å½ -> éå®åå°URLï¼è¾å ¥éè¦è½¬åçç®æ URLï¼å¹¶éæ©âèµæºçæ°¸ä¹ éå®åâã
è¿ä¸ªéè¦æå¡å¨ç´æ¥æä½ï¼å¾å¤ç©ºé´åä¸ä¼ç»åã
ä»äºç©ºé´ç®¡çç¨åºåæ¹æ³åä¸ç¸åï¼ä¾å¦ä¹åçWEBæä½ç®¡ç æå¯è½å¯¼è´301é´æ¥å¤±ææ以å¦æä¸æ¯èªå·±ç¬ç«æå¡å¨ ä¸å»ºè®®ç´æ¥æä½ãæ¡æ¡å¤§è·¯éç½é©¬çä¸ï¼
éç¨isapi-rewirteç»ä»¶ ç伪éæå®å ¨ç¬ç«ï¼å¯ä»¥ç´æ¥å¨å伪éæè§åæ件httpd.ini å ä¸301跳转代ç ç«å³çæã详解ï¼å©ç¨ ISAPI Rewrite å301æ°¸ä¹ éå®åã
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteEngine On
RewriteCond Host: ^boaer\.com$
RewriteRule (.*) http\://www\.boaer\.com$1 [I,RP]
注ï¼----URLæ ååç301éå®åï¼ä»¥ä¸ä»£ç ï¼éè¦åå¨å ¶ä»URL-rewrite代ç ä¹åã
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteEngine On
RewriteCond Host: ^boaer\.com$
RewriteRule (.*) http\://www\.boaer\.com$1 [I,RP]
注ï¼----URLæ ååç301éå®åï¼ä»¥ä¸ä»£ç ï¼éè¦åå¨å ¶ä»URL-rewrite代ç ä¹åã
2ãASPä¸ç301转å代ç
<%@ Language=VBScript %>
<%
Response.Status=â301 Moved Permanentlyâ
Response.AddHeader âLocationâ, âhttp://www.*****/***/301/â
%>
3ã转å代ç
<script runat=âserverâ>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = â301 Moved Permanentlyâ;
Response.AddHeader(âLocationâ,âhttp://www.*****.cn/***/301/â);
}
</script>
4ãPHPä¸ç301转å代ç
header(âHTTP/1.1 301 Moved Permanentlyâ);
header(âLocation: http://www.*****.cn/***/301/â);
exit();
5ãCGI Perlä¸ç301转å代ç
$q = new CGI;
print $q->redirect(âhttp://www.*****.com/â);
6ã转å代ç
<%
response.setStatus(301);
response.setHeader( âLocationâ, âhttp://www.*****.cn/â );
response.setHeader( âConnectionâ, âcloseâ );
%>
7ã转å代ç
æ°å»º.htaccessæ件ï¼è¾å ¥ä¸åå 容ï¼éè¦å¼å¯mod_rewriteï¼ï¼
1ï¼å°ä¸å¸¦WWWçåå转åå°å¸¦WWWçååä¸
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^boaer.cn [NC]
RewriteRule ^(.*)$ http://www.*****.cn/$1 [L,R=301]
2ï¼éå®åå°æ°åå
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ http://www.*****.cn/$1 [L,R=301]
3ï¼ä½¿ç¨æ£åè¿è¡301转åï¼å®ç°ä¼ªéæ
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^news-(.+)\.html$ news.php?id=$1
å°news.php?id=123è¿æ ·çå°å转åå°news-123.html
8ãApacheä¸vhosts.confä¸é ç½®301转å
为å®ç°URLè§èåï¼SEOé常å°ä¸å¸¦WWWçåå转åå°å¸¦WWWååï¼vhosts.confä¸é 置为ï¼
<VirtualHost *:80>
ServerName www.*****.cn
DocumentRoot /home/lesishu
</VirtualHost>
<VirtualHost *:80>
ServerName lesishu.cn
RedirectMatch permanent ^/(.*) http://www.*****.cn/$1
</VirtualHost>
Apacheä¸é¤äºä»¥ä¸2ç§æ¹æ³ï¼è¿æå ¶ä»é ç½®æ¹æ³åå¯éåæ°ï¼å»ºè®®é 读Apacheææ¡£ã
温馨提示:答案为网友推荐,仅供参考
第1个回答 2016-01-13
你是什么域名? top域名吗 自动复制页面信息发送到你邮箱,这不好操作吧本回答被网友采纳