SEF_URLs plugin for cpg1.4.x - Page 4 SEF_URLs plugin for cpg1.4.x - Page 4
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

SEF_URLs plugin for cpg1.4.x

Started by Joachim Müller, September 08, 2007, 01:04:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mohamedimran

Hi Nibbler,

i have recently edited the sef pluging and got installed, now it is showing the SEF urls but the problem is, if i clicked through that link, it displays 404 error page

My site : http://funnyimgs.freehostia.com/ 

Sample SEF url : http://funnyimgs.freehostia.com/thumbnails-16.html      - returns 404 page

consider my previous post for the "mod_rewrite support"....

I'm pleasure to provide more information if u want......

Nibbler

If you get the 404 that means mod_rewrite is not working.

rajen

#62
thanks for the plugin guys, it works fine except for one url :(

i would really appreciate if someone can help :)

http://www.lageraho.com/cartoons/index.php

but when i click on "albums list" on the left menu it shows a 404, all other pages work fine

http://www.lageraho.com/cartoons/index-0.html <---this is the link to the albums list

my htaccess file looks like this:

Options FollowSymLinks SymLinksIfOwnerMatch

RewriteEngine on

#  Uncomment the following line if your webserver's
#  URL is not directly related to physical file paths.
#  Update "/cartoons" (just / for root)
#RewriteBase /YOUR_COPPERMINE_ROOT
#
# Rewrite index urls
#
RewriteRule index-([0-9]+)cartoons\.html cartoons\index.php?cat=$1 [NC]
RewriteRule index-([0-9]+)-page-([0-9]+)cartoons\.html cartoons\index.php?cat=$1&page=$2 [NC]
#
# Rewrite thumbnail urls
#
RewriteRule search-thumbnails-(.*)\.html thumbnails.php?album=search&search=$1 [NC]
RewriteRule thumbnails-lastupby-([0-9]+)\.html thumbnails.php?album=lastupby&uid=$1 [NC]
RewriteRule thumbnails-lastcomby-([0-9]+)\.html thumbnails.php?album=lastcomby&uid=$1 [NC]
RewriteRule thumbnails-lastupby-([0-9]+)-([0-9]+)-page-([0-9]+)\.html thumbnails.php?album=lastupby&cat=$1&uid=$2&page=$3 [NC]
RewriteRule thumbnails-lastcomby-([0-9]+)-([0-9]+)-page-([0-9]+)\.html thumbnails.php?album=lastcomby&cat=$1&uid=$2&page=$3 [NC]
RewriteRule thumbnails-([a-z0-9]+)-([\-]?[0-9]+)\.html thumbnails.php?album=$1&cat=$2 [NC]
RewriteRule thumbnails-([a-z0-9]+)-page-([0-9]+)-sort-([a-z]+)\.html thumbnails.php?album=$1&page=$2&sort=$3 [NC]
RewriteRule thumbnails-([a-z0-9]+)-page-([0-9]+)\.html thumbnails.php?album=$1&page=$2 [NC]
RewriteRule thumbnails-([a-z0-9]+)-([\-]?[0-9]+)-page-([0-9]+)\.html thumbnails.php?album=$1&cat=$2&page=$3 [NC]
RewriteRule thumbnails-([a-z0-9]+)\.html thumbnails.php?album=$1 [NC]
#
# Rewrite displayimage urls
#
RewriteRule displayimage-lastupby-([\-]?[0-9]+)-([\-]?[0-9]+)-([0-9]+)\.html displayimage.php?album=lastupby&cat=$1&pos=$2&uid=$3 [NC]
RewriteRule displayimage-lastcomby-([\-]?[0-9]+)-([\-]?[0-9]+)-([0-9]+)\.html displayimage.php?album=lastcomby&cat=$1&pos=$2&uid=$3 [NC]
RewriteRule displayimage-([\-]?[0-9]+)-fullsize\.html displayimage.php?pid=$1&fullsize=1 [NC]
RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&cat=$2&pos=$3 [NC]
RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&pos=$2 [NC]
RewriteRule displayimage-([0-9]+)\.html displayimage.php?pos=-$1 [NC]
RewriteRule slideshow-([0-9]+)-([\-]?[0-9]+)-([0-9]+)\.html displayimage.php?album=$1&pid=$2&slideshow=$3 [NC]
RewriteRule slideshow-([a-z]+)-([\-]?[0-9]+)-([0-9]+)-([0-9]+)\.html displayimage.php?album=$1&cat=$2&pid=$3&slideshow=$4 [NC]
#
# Rewrite users' profiles
#
RewriteRule profile-([0-9]+)\.html profile.php?uid=$1 [NC]
#
# Rewrite Rate this file
#
RewriteRule ratepic-([0-9]+)-([0-5])\.html ratepic.php?pic=$1&rate=$2 [NC]


rajen

sorry i dont mean to be pushy but some help would be highly appreciated guys :)

Nibbler

It doesn't work because you've added 'cartoons' into the rewrite rules for no apparent reason.

rajen

thanks mate, removing cartoons from the rewrite rules solved the problem :)

blickwinkel

Hello!

I am a newbie to coppermine and have installed this plugin. I use coppermine 1.4.25. During the installation a 500 Internal Server Error showed up. Now my gallery was not accessable. Everytime I get this error.Like described i wanted to delete the .htaccess File, but i don't find it in the root-directory. Neither i find the SEF Plugin in the plugins-directory.

Please: anyone tell me what to do.

Thanks

blickwinkel

Quote from: blickwinkel on January 05, 2010, 10:23:45 PM
Hello!

I am a newbie to coppermine and have installed this plugin. I use coppermine 1.4.25. During the installation a 500 Internal Server Error showed up. Now my gallery was not accessable. Everytime I get this error.Like described i wanted to delete the .htaccess File, but i don't find it in the root-directory. Neither i find the SEF Plugin in the plugins-directory.

Please: anyone tell me what to do.

Thanks

Ok, found the problem. Filezilla (my ftp client) didn't show the .htcaccess file. I downloaded another client and it worked.

Joachim Müller

It's a feature in FileZilla to display or hide Lunix system files (i.e. .htaccess) - they call them "dotfiles", i.e. files that start with a dot and you probably have a filter in place. Thanks for resolving your issue, but this plugin as well as any other plugin can be used just fine using FileZilla - in fact, FileZilla is the FTP app the coppermine dev team recommends to use. You should have read the docs that come with FileZilla (help file) that explain how to use the toggle. Subsequently, your recommendation to use another FTP app doesn't apply: use FileZilla and use the corrsponding toggle in the filter dialog there. There are a lot of answers if you google for the right search term, e.g. "filezilla display .htaccess".

Joachim

P.S. For the sake of completeness: it's possible that you can not display .htaccess files no matter what on the server side if your webhost doesn't want you to display them, i.e. if the server is configured to hide them no matter what. As suggested, files with a leading dot are system files on Unix/Linux systems that are hidden deliberately. This of course will not change no matter what FTP client you use. In other words: on some server setups, you won't be able to display .htaccess files no matter what client you use. This was obviously not the case for blickwinkel though.

ronnie66

Thanks for the plugin guys, it works fine.

But is there already a solution for tjis problem -- >>with SEF URLs plugin you can change the language (of coppermine) only on the first gallerie's page.?

www.wallpapersfree.nl

Joe Carver

If you had searched and read through this thread you would find the author of the plugin wrote:

Quote from: Makc666 on November 02, 2008, 04:59:38 PM
there is no way to change languages on pages not like index.html
Sorry, but there is really nothing we can do about this one.

You can just add a reminder/pointer/link to your theme asking your visitors to change language on your home page or any page that does not get the rewrite. (...yyyxzzz.php)

thapame

Hi,

I'm getting strange problem with this plugin.
I added .htaccess file on the root dir and placed the plugin.
When I tried to install the plugin I got a blank page for the whole site.

But when I try without installing the plugin the sef url is working.

Currently I have not installed the plugin from plugin manager but the url is working but at the same time if I install it I'll get a blank page.

Can anyone help me?

Thanks

drakefan

Hi,

I'm new here. This plugin is working fine for me, the only thing I would like to change is the actual replacement text that is used when the links are made for example my links right now look like this.

http://www.drakepictures.net/thumbnails-123.html

I want them to look more like this

http://www.drakepictures.net/drake-picturethumbs-123.html

Nothing crazy, but I tried to do some work in the htaccess and messed it up so I revert the htaccess to default can some one help this ?

Joachim Müller

Review the discussion on exactly the same issue for the SEF_URLs plugin for cpg1.5.x, but don't ask for a backport. Development for cpg1.4.x has ended, support will run out soon. Consider upgrading to cpg1.5.x

drakefan

the only reason I haven't upgraded yet, is because I'm not sure if there's a new stramm version to support that upgrade?

phill104

Please read the feature list of 1.5.6 and see if all the features you need are there before worrying about the modpack.
It is a mistake to think you can solve any major problems just with potatoes.

dahoc

Will this plugin work on cpg1.5.x?  or has this feature been added directly to the cpg1.5.x branch?

Thanks!

treret

This plugin doesn't work with PHP 5.3 and higher.
I installed the cpg1.5.x plugin and works perfectly even on cpg1.4.10. More.. it makes friendly urls even for users profiles, that the 1.4.x ver didn't make.

treret

 :-\ It's not right:

it doesn't revrite image urls.

Sorry.

phill104

This is the thread for the cpg1.4.x version which is no longer supported. As such I wil lock this thread. If you are still using CPG1.4.x then please upgrade to CPG1.5.x and use the version built for that.
It is a mistake to think you can solve any major problems just with potatoes.