After much trouble I have an .htaccess file, loaded and working. I have verified with my host (dreamhost) that mod_rewrite is infact installed. I have turned on mod_rewrite in the admin page and in the .htaccess file. What happens though is when the .htaccess file has the rewrite engine turned on, index.php and all the albums, images, and search pages seem to work, but my phpinfo.php page, setup.php and admin.php pages stop working. They report the error "No input file specified." This happens whether or not I turn mod_rewrite on in the admin page, which I do by turning mod_rewrite off in the .htaccess page so I can get to the admin page.
Mod_rewrite is making my URLs clean, its just that I cant access the admin section now.
Comments
sbillard:
I have tracked the problem down to the last line of the .htaccess file before the endif.
`RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]`
If I comment out this line with a # the rest of the nice URLs stop working, clicking on an album thumbnail no longer works, but the setup.php, phpinfo.php, and admin.php files can be accessed again. If I take the comment out and let the line work, those files return the error but the album, image, and search pages load again.
As you discovered jasronq, commenting out the last htaccess line fixes some pages but breaks others. I think that sbillard is onto something about the rules at the beginning but changing them has had no effect for me thus far.
I get similar problems with netsons.org, an italian host.
As jasronq discovered, the core of the problem is the last line in .htaccess file.
If I don't comment it, I get a 500 code error when trying to access admin.php page.
It seems to break some policy rule on their server.
So far I was not able to solve the problem...
Steve
`RewriteRule ^.*$ - [R,L]`
and remove the R so it looks like
`RewriteRule ^.*$ - [L]`
Please report if that fixes your issues, too.
Fantastic - back in top working order. THANKS!!
But I wonder what caused this, since it seemed recent.
Steve
2. Recent changes to Apache 2 caused anybody using AuthGroupFile in their
.htaccess to get errors. It turns out this was an oversight. The module
was recently added to Apache 2 and our servers have been reconfigured -
so this should be fixed now. If you continue to see errors tho, you
might want to attempt commenting out the AuthGroupFile line in your
.htaccess file (adding a "#" to the beginning of the line should do) and
reloading your page.
So maybe now that they have changed things the original zenphoto htaccess file will work, but since I'm not having problems with the modified version I'm not going to change it back!
Thanks again acrylian. That was FAST work!
Steve
Thanks a million for fixing this error.