qq_35011659 2018-08-06 03:26 采纳率: 0%
浏览 623
已结题

SEOApache配置修改 http rewrite

根据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条回答

  • dabocaiqq 2018-08-06 14:34
    关注
    评论

报告相同问题?

悬赏问题

  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏