SEOApache配置修改 http rewrite 20C

根据url规则 写cookie值
第一种: 域名后的第一个值放入cookie 第一个竖线和第二个竖线之间
https://xxx.com/wholesale/wedding+dresses.html
cookies 值: seo|wholesale||organic|搜索引擎|搜索关键词|
https://xxx.com/manufacturers/wedding-dresses-suppliers.html
cookies 值:seo|manufacturers||organic|搜索引擎|搜索关键词|
第二种:m. 后的值放入 cookie 第一个竖线和第二个竖线之间
https://m.ca.xx.com/skater-skirt-woman-canada.html
cookies 值:seo|ca||organic|搜索引擎|搜索关键词|
https://m.au.xx.com/knit-skater-skirt-australia.html
cookies 值:seo|au||organic|搜索引擎|搜索关键词|

RewriteCond %{HTTP_REFERER} ^https?://(\S+\.)?(google|yahoo|bing|aol|ask|search-results|yandex)\.(.+)(\?q=|&q=|\?p=|&p=|\?text=|&text=)([^&]*)gate([^&]*)(.*)$ [NC]
RewriteRule ^(.*)$ $1 [CO=ref_f:seo|%{ENV:pkey}||brand|%2|%5gate%6|:dhgate.com:43200,S=6]
RewriteCond %{HTTP_REFERER} ^https?://(\S+\.)?(google|yahoo|bing|aol|ask|search-results|yandex)\.(.+)(\?q=|&q=|\?p=|&p=|\?text=|&text=)([^&]*)(.*)$ [NC]
RewriteRule ^(.*)$ $1 [CO=ref_f:seo|%{ENV:pkey}||organic|%2|%5|:dhgate.com:43200,S=5]
RewriteCond %{HTTP_REFERER} ^http://(\S+\.)?(google)\.(.*)/search$ [NC]
RewriteRule ^(.*)$ $1 [CO=ref_f:seo|%{ENV:pkey}||organic|%2|search|:dhgate.com:43200,S=4]
RewriteCond %{HTTP_REFERER} ^https?://(\S+\.)?(google|yahoo|bing|aol|ask|search-results|yandex)\.(.*)$ [NC]
#RewriteRule ^(.*)$ $1 [CO=ref_f:seo|%{ENV:pkey}||organic|%2|http|:dhgate.com:43200,S=3]
RewriteRule ^(.*)$ $1 [CO=ref_f:seo|%{ENV:pkey}|%{REQUEST_URI}|organic|%2|http|:dhgate.com:43200,S=3]
RewriteCond %{HTTP_REFERER} ^https?://(\S+\.)?(youtube)\.(.*)/watch\?v=([^&]*)(.*)$ [NC]
RewriteRule ^(.*)$ $1 [CO=ref_f:%2|organic|%4||||:dhgate.com:43200,S=2]
RewriteCond %{HTTP_REFERER} ^https?://(\S+\.)?(youtube|twitter|facebook|pinterest|instagram|bit|reddit)\.(.*)/?(.*)$ [NC]
RewriteRule ^(.*)$ $1 [CO=ref_f:%2|organic|||||:dhgate.com:43200,S=1]

RewriteCond %{REQUEST_URI} /wholesale-refine/(.*)$ [NC]
RewriteCond %{HTTP_REFERER} ^https?://(\S+\.)?(google|yahoo|bing)\.(.*)$ [NC]
RewriteRule ^(.*)$ $1 [CO=ref_f:seo|cate-attr||organic|%2|http|:dhgate.com:43200,S=7]

RewriteCond %{HTTP_REFERER} ^https?://(\S+\.)?(google|yahoo|bing|aol|ask|search-results|yandex)\.(.+)(\?q=|&q=|\?p=|&p=|\?text=|&text=)([^&]*)(.*)$ [NC]
RewriteRule ^(.*)$ $1 [CO=ref_f:seo|||organic|%2|%5|:dhgate.com:43200,S=6]

RewriteCond %{HTTP_REFERER}-split-%{REQUEST_URI} ^https?://(\S+\.)?(google|yahoo|bing|aol|ask|search-results|yandex)\.(.*)-split-/(wholesale|manufacturers|discount|online-shopping|free-shipping|hot-product|uk|price|reviews)/(.*)\.html$ [NC]
RewriteRule ^(.*)$ $1 [CO=ref_f:seo|%4||organic|%2|http|:dhgate.com:43200,S=5]

RewriteCond %{HTTP_REFERER}-split-%{HTTP_HOST} ^https?://(\S+\.)?(google|yahoo|bing|aol|ask|search-results|yandex)\.(.*)-split-(au|ca|nz|uk)\.dhgate\.com$ [NC]
RewriteRule ^(.*)$ $1 [CO=ref_f:seo|%4||organic|%2|http|:dhgate.com:43200,S=4]

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐