thibaud-rohmer / PhotoShow

A free web gallery in PHP with drag-n-drop support
http://www.photoshow-gallery.com
502 stars 151 forks source link

[feature] Pretty URL rewriting #294

Open ortolot opened 8 years ago

ortolot commented 8 years ago

Hello,

One feature would be nice to have (but not really easy to implement): support for server-side URL rewriting, in order to use pretty URL. That is, use URLs such as:

That would require:

  1. some configuration to give to the user to configure his Web server (I could provide that for Apache, Lighttpd and possibly Nginx) so these URLs are transformed into cals with proper parameters to index.php;
  2. an option to make PhotoShow generate links with pretty URLs (disabled by default, of course!);
  3. some code so the URLs to scripts, stylesheets and other files are modified accordingly (from /show/path/to/album, you have to reference ../../../../inc/jquery-ui.js for intance!).

As I mentionned, this is no easy thing to implement, but it would be really nice to have, possibly as a milestone for a new major version, if there are plans for that…

ortolot commented 8 years ago

By the way, adapting links to external resources would be a perfect use case for the <base> HTML tag.

thibaud-rohmer commented 8 years ago

Yep, that would be cool.

On Thu, 13 Aug 2015 at 11:38 ortolot notifications@github.com wrote:

By the way, adapting links to external resources would be a perfect use case for the HTML tag.

— Reply to this email directly or view it on GitHub https://github.com/thibaud-rohmer/PhotoShow/issues/294#issuecomment-130592198 .