Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: fancy urls (with Apache mod_rewrite)  (Read 6019 times)

0 Members and 1 Guest are viewing this topic.

blueyed

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://thequod.de
fancy urls (with Apache mod_rewrite)
« on: October 19, 2003, 08:32:08 pm »

I'm building my site using fancy URLs (=static looking URLs), that will be redirected through Apache's mod_rewrite module.
AFAICS Coppermine has no support for that yet, but that would be cool. You would need an option to turn in on through Admin panel and put a set of rules into .htaccess or httpd.conf.
What do you think?

Now I have the following rules:
Code: [Select]
RewriteRule ^en/gallery/(.*)?(.*) /gallery/$1?$2&lang=english
RewriteRule ^en/gallery/(.*) /gallery/$1?lang=english

RewriteRule ^de/gallery/(.*)?(.*) /gallery/$1?$2&lang=german
RewriteRule ^de/gallery/(.*) /gallery/$1?lang=german

That redirects my two supported languages to the coppermine path.

bug report
It works quite good, but leads to problems. I saw it for the "to user mode" link, that will be:
Code: [Select]
http://thequod.de/de/gallery/admin.php?admin_mode=0&referer=/de/gallery/admin.php?lang=german
resulting in
"Script called without the required parameter(s)." - probably due to the questionmark in the referer GET variable, which should be escaped.
Don't know, if there are other issues..
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.