SEF URLs for cpg1.6.x SEF URLs for cpg1.6.x
 

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]

Main Menu

SEF URLs for cpg1.6.x

Started by Timos-Welt, November 08, 2019, 04:36:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Timos-Welt

Makes SEF URLs for index, thumbnails, and displayimage.php. (Apache webserver only!)
Warning: this plugin is still experimental, there are known issues when using it. Test thoroughly and use at your own risk.
When getting unexpected results, disable the plugin and remove the .htaccess file the plugin creates manually (using your FTP app).

German/french/spanish/italian localisation:
!!!DANGER! Only do this if you know exactly what you are doing!!!!

To change english short URLs to german/french/spanish/italian SEF URLs, first uninstall the plugin. Then open codebase.php and find this line (it's twice in there):
$sef_language = 'english';
and change both lines to
$sef_language = 'german'; or $sef_language = 'french'; or $sef_language = 'spanish'; or $sef_language = 'italian';
Then install plugin again and overwrite existing .htaccess.

Please note that french and spanish support are experimental.

purplefreak3

Hello I recently noticed that using this plugin causes a 500 error, I have always used a SEF plugin and the site is quite old being 14 years online so google has many links directed to these SEF urls, so turning off the plugin would break all those links which people find the site through.

If I'm logged in, I can seem to view the gallery fine but if I'm not logged in it gives me a 500 error. I only have two plugins installed and been able to determine that is the SEF plugin causing it. In the known issues notes it says custom thumbnails causes issues but that is not the other plugin I use. I can have SEF as the only plugin installed and will do this.

I have tried to uninstall the plugin, delete the htaccess file and reinstall but still gives me the same error. The main gallery page works fine it when you try to view a album that using SEF that get the 500 error.

Site link
http://www.beautifuljodelle.com/gallery/

http://www.beautifuljodelle.com/gallery/displayimage-14682-_Jodelle_Ferland_Dark_Matter_S02_E07_BJ_027_jpg_.html

ron4mac

The problem is with your theme. It is not compatible with CPG 1.6.x

You will need to make changes to it:
https://forum.coppermine-gallery.net/index.php/topic,79754.msg386528.html#msg386528

... or use a different theme.

purplefreak3

Quote from: ron4mac on April 14, 2021, 07:18:06 AM
The problem is with your theme. It is not compatible with CPG 1.6.x

You will need to make changes to it:
https://forum.coppermine-gallery.net/index.php/topic,79754.msg386528.html#msg386528

... or use a different theme.

Thank You that solved the problem.