forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: wipqozn1 on May 07, 2007, 08:05:07 pm
-
I read the forum before, but problem like this didn't come up so far.
I've got enabled mod_rewrite of course. After installing plugin when I click on one of my menu links it give me an error (I mean all of them give me this error):
The requested URL /my-profile.html was not found on this server.
So it's like this: mod_rewrite works properly (I redirect from www.blablah.com to blablah.com for example) but not in case of this plugin.
Any solution guys?
-
Which plugin is this?
Are you sure the www redirect actually uses mod_rewrite?
-
This one: http://forum.coppermine-gallery.net/index.php?topic=25215.0
I thought there could be some cpg version differences but didn't find such ones.
Absolutely, I always use .htaccess to redirect from www to non-www. I've got dedicated server so I'm pretty sure what I've enabled :-)
RewriteCond %{HTTP_HOST} ^www.asd.com$
RewriteRule ^(.*)$ http://asd.com/$1 [R=301,L]
It works fine.
-
I don't see any feature in that plugin involving my-profile.html
Did you modify the .htaccess code to match your actual setup?
ie.
RewriteBase /votredossier
Edit:
If you are using the second plugin in that thread you'll need to adjust the rewrite rules - they assume the gallery is installed in the web root.
-
My gallery is installed in web root :-)
http://gryz.pl
Now the plugin is enabled and as You can see, it rewrite all addresses to .html extension (sometimes analogue .php page doesn't even exist). So it (more or less) work, but not properly.
I've attaches 2 files I use (as .txt files).
I've removed one line in htaccess:
Options +FollowSymlinks
'cause it gave me an Internal Error (500).
-
One more example.
It shows link like this in cpg menu:
http://gryz.pl/top-rated-cat-0.html
(not found), but in fact it rewrites page to this address:
http://gryz.pl/top-rated-cat-0.php
who work properly (but doesn't appear in menu).
-
Well, I didn't do it before since I thought it'd be to easy...
I've replaced all .html strings in codebase.php with .php
Now everything works fine. Problem solved.