Hey Guys,
I don't know much about mod_rewrite and how ZP uses it, but I think I might have found a bug.
On one of my test instances, I have
`$conf['mod_rewrite'] = false;`
so that I can see what's happening with the URL (since my other test installations all use mod_rewrite). Anyways, it's setup as `
http://localhost/zp103`and when I tried going to the admin I just went to the location bar, typed in
/admin and pressed enter.
The next thing I know, I'm taken to `
http://localhost/zp/zen/admin` instead of `
http://localhost/zp103/zen/admin`I look at my
.htaccess file and see:
`RewriteBase /zp`
when I changed that to
`RewriteBase /zp103`
the problem is fixed.
I thought that if I had mod_rewrite set to false, that it would not use any of the rewrite options.
Is this a bug or am I just not understanding it correctly?
Comments
The actual admin link is /zen/ in 1.0.3 -- /admin/ is just a convenient mod_rewrite redirect that works if you've got it and the RewriteBase is correct.
If mod_rewrite was actually not installed and not working, or if you delete the .htaccess file, you won't have the problem, so no, let's not call it a bug.