Activating mod_rewrite on a SimpleScripts install.

I installed Zenphoto onto a Bluehost hosted website using Simplescripts and I had some trouble getting mod_rewrite working to get me nice cruft-free URLs.

I assumed the problem was to do with SimpleScripts, but in fact it was because I had not setup an .htaccess file properly.

I had to:
  1. Edit htaccess.txt in my installation folder. My album is at http://cheyne.net/photos, so the RewriteBase line said "RewriteBase /photos".
  2. Rename htaccess.txt to .htaccess. (This was what I was missing)
  3. I went to the Gallery Configuration page in my Zenphoto options and checked the "Enable mod_rewrite" option.

Comments

  • Thanks for posting this. I hope it will help other people using Simplescripts installs. It is unfortuante you have to do this. The standard Zenphoto install/setup will configure the .htaccess file for you. You might wish to post a notice to the people doing simple scripts of your problem and solution.

    Point out that their script does not do the same things that the Zenphoto install does and this could cause problems in the future as setup insures all the database items are set correctly for the version of Zenphoto it is installing.
Sign In or Register to comment.