mod_rewrite page navigation does not work

Greetings,

When using mod_rewrite, when there is more than one album, and album 2 or 3 etc.. is clicked on, the page does not display properly. If I take the / off at the end of the next page address, the page displays properly.

Example can be found here:
http://www.tricitiesguide.com/zenphoto/bristol-motor-speedway-august-2009/page/2/

If I take the / off at the end, it displays correctly as can be seen here:
http://www.tricitiesguide.com/zenphoto/bristol-motor-speedway-august-2009/page/2

If I go back to another theme, it works.

Any ideas on why my theme will not take / at the end of an album address when
using the mod_rewrite function (if I uncheck the mod_rewrite function, it does paginate
correctly).

Thanks in advance for looking at this,

Sean B. Halliday

Comments

  • acrylian Administrator, Developer
    Try full absolute paths for the header images and such. Btw, you are running an older version of Zenphoto.
  • I have put the full absolute path in the htaccess file and have tried uncommented the lines in the zp-config file and adding the full path there. No luck as it is still the same. Any other ideas I you think I can try.

    Thanks,

    Sean
  • acrylian Administrator, Developer
    Full paths in the htaccess of course do not work. Try what I suggested above.
  • I have figured out what it was. When NOT using mod_rewrite, it ends the path with "page=2" which works out fine with the link to the style sheet I am using.

    When you turn on mod_rewrite, it changes the end of the path to be "page/2/".

    Adding the "/" on the end changed the folder location when looking for the style sheet.

    So I changed the path to the style sheet from "../../../" to "../../../../" and now all the pages work.

    Thanks for all your time looking into this.

    Sean B. Halliday
  • acrylian Administrator, Developer
    Using full paths to call those would have done the same. Good that you got it working anyway.
Sign In or Register to comment.