Member
Member
DarrellD   2006-06-06, 05:06
#1

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 [b]/admin[/b] 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 [b].htaccess[/b] 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?

Developer
Developer
trisweb   2006-06-06, 20:35
#2

The .htaccess is still there, and since your apache is using it, it still "works". Even going to /album/image.jpg will still work; the $conf['mod_rewrite'] option just switches the way the URLs are composed in ZP to the non-rewritten style.

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.

Member
Member
DarrellD   2006-06-06, 21:57
#3

Okay. Thanks for clearing that up.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.