aymericb / exposition

A modern HTML5 photo gallery
6 stars 1 forks source link

Rewrite rules are broken #2

Open trebitzki opened 11 years ago

trebitzki commented 11 years ago

Please refer to issue #1 for my setup. The .htaccess line RewriteBase /exposition seems to cause or not prevent a rewrite to http://localhost/, so a browser refresh throws me out of the gallery.

aymericb commented 11 years ago

I think RewriteBase /exposition is not enough. Try also changing the line just below from RewriteRule ^(.+)/?$ ?path=/$1 [L,R] to RewriteRule ^(.+)/exposition/?$ ?path=/$1 [L,R] or something like that.

As I said, I do really support deploying to anything but '/' at the moment.

PS: Sorry I cannot test this now.

trebitzki commented 11 years ago

No, I tried some variations on that, same spiel. I'll have a look at your js code over the weekend; maybe I can come up with a patch.

aymericb commented 11 years ago

Oh yeah. It clashes with the HTML5 history rewrite...