forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: profili on August 17, 2011, 12:32:13 am

Title: Problems with SEF_URLs plugin
Post by: profili on August 17, 2011, 12:32:13 am
There is a problem, or bug with SEF_URLs plugin (http://forum.coppermine-gallery.net/index.php/topic,42568.0.html)

For some unknown reason are created url-s from folders that are not there at all. As user we can't see these url-s, but Google do. I found these url-s in Google's search results.

To understand my point look at Timos gallery, the author of Speaking url-s hack. http://pics.timos-welt.de/

A normal album http://pics.timos-welt.de/uebersicht-50-_Oldenburg_September_2010_.html
And this is the url I'm talking about: http://pics.timos-welt.de/dasistuncool/uebersicht-50-_Oldenburg_September_2010_.html

A normal file url http://pics.timos-welt.de/bild-50-1142-_Das_Ende_der_Saison_.html
And the "other" url http://pics.timos-welt.de/justfortest/bild-50-1142-_Das_Ende_der_Saison_.html

These folders are not there and the gallery should give a 404 error, but not, it gives this broken page.

I hope someone will come with e solution for this, because it is a real problem.
Title: Re: Problems with SEF_URLs plugin
Post by: Αndré on August 17, 2011, 10:37:49 am
These folders are not there and the gallery should give a 404 error, but not, it gives this broken page.

I don't know where those urls come from, but if you need a 404 error message by all means, you have to edit the whole .htaccess file. E.g. you have to change
Code: [Select]
RewriteRule displayimage-([0-9]+).*\.html(.*) displayimage.php?pid=$1$2 [NC]to
Code: [Select]
RewriteRule (.*)displayimage-([0-9]+).*\.html(.*) $1displayimage.php?pid=$2$3 [NC]

Maybe there's a better solution I'm currently not aware of.