uniq problem with friendly_urls uniq problem with friendly_urls
 

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

uniq problem with friendly_urls

Started by wipqozn1, May 07, 2007, 08:05:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wipqozn1

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):

QuoteThe 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?

Nibbler

Which plugin is this?

Are you sure the www redirect actually uses mod_rewrite?

wipqozn1

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.

Nibbler

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.

wipqozn1

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).

wipqozn1

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).

wipqozn1

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.