伪静态的URL中包含其他URL怎么处理

#1 jacob_cyl

如果跳转到某个页面的时候包含跳转前的页面 例如从  http://localhost/index.php?c=user&a=profile 跳转到登陆页面  http://localhost/index.php?c=user&a=login&return= index.php?c=user&a=profile  。 如果要使用伪静态的话就出问题了。

http://localhost/user-profile.html 跳转到 http://localhost/use-login-return-user-profile.html.html 这样就有错误了,页面上通过spurl生成的url就不能正常使用,例如css,js文件就加载不了,因为url错误。

请问有什么更好的解决方案,对于这种url上带有返回url ,且又使用伪静态的情况。

谢谢。

2012-10-10 18:23:33

#2 jake

spUrl(xx, xx). '?return='. urlencode(spUrl(xx,xx))

警告一下:请发提问贴发到求助问答区,本贴将转移!

2012-10-10 18:35:17

#3 jacob_cyl

jake 发表于 2012-10-10 18:35
spUrl(xx, xx). '?return='. urlencode(spUrl(xx,xx))

警告一下:请发提问贴发到求助问答区,本贴将转移! ...
oh,sorry,我的失误,没分好类。谢谢jake的指教。知道怎么做了。

2012-10-10 19:08:34