获取当前网址

 

例如当前网址http://cs.sodddoo.com/news1/29109.html

curDomain = Request.ServerVariables("HTTP_X_ORIGINAL_HOST")   '当前域名:如:cs.sodddoo.com

Request.Headers("X-Rewrite-URL")  '当前域名后面的参数,例如/news1/29109.html
cur_url = "http://" & curDomain & Request.Headers("X-Rewrite-URL")  '当前网址,如:http://cs.sodddoo.com/news1/29109.html

posted @ 2020-04-13 14:43  石衣_2014  阅读(436)  评论(0编辑  收藏  举报