mod_rewrite cookies丢失了

时间:2012-01-30 21:50:21

标签: php mod-rewrite cookies xampp localhost

我有网址:

http://localhost/subdir/subdir/view_project.php?pid=1

重写网址:

http://localhost/project/3-dasda

和mod重写规则

RewriteBase /subdir/subdir/
RewriteRule ^project/([0-9]+)(.*)$ view_project.php?pid=$1 [L]

这样做没问题,除非我尝试在http://localhost/project/3-dasda上访问我的cookie,我只有“PHPSESSID”。如果我访问'http://localhost/subdir/subdir/view_project.php?pid = 1',那么所有的cookie都在那里。两种情况都有会话。我无法弄清楚发生了什么?

0 个答案:

没有答案