|
jimmykuuNov 30, 2012
1
定义URL规则就行了
我用Python的Pyramid框架,定义一个/go={what},就可以,/go=xxx, /go=ooo都满足这个规则 如果用框架的话,大部分框架都支持 |
|
leizNov 30, 2012
2
# go=xxx
def get(self): go = get_argument('go', None) self.redirect('/xxx') |
|
leizNov 30, 2012
3
self.redirect('/'+go)
|
|
firsthymNov 30, 2012
4
你这个问题有点大。简单来说,就是路由嘛。
|
|
LazyZhuNov 30, 2012
5
nginx
location / { if ( $query_string ~* "go=.*$" ) { return 302 $arg_go; } } test: http://198.74.110.195/?go=http://www.v2ex.com/ |
|
gfreezyDec 1, 2012
6
这种不会对SEO不好吗
|
|
blue5tarDec 1, 2012
7
头像杯子不错
|
|
anyforeverDec 1, 2012
8
RE@gfreezy : @LazyZhu 的方法估计对SEO会有影响。
|
|
lemondaDec 1, 2012
11
是想用在wordpress上么?
http://wordpress.org/extend/plugins/redirection/ http://wordpress.org/extend/plugins/shortcodes-ultimate/ http://wordpress.org/extend/plugins/simple-urls/ 还有个gocodes,很久不更新了,会报错,但仍可以用。 |
|
lovemindsDec 2, 2012
12
@anyforever 换成301
|
|
anyforeverDec 2, 2012
13
@loveminds 据我以前的经验,百度根本无视这些规则。
|