URL method 2 works fine but not friendly URL

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-16-2007, 10:43 AM
liotier's Avatar
Casual Pligger
Pligg Version: Slightly modified 9.8.2
Pligg Template: Slightly modified Yget from 9.8.2
 
Join Date: Jul 2007
Location: Paris La Défense, France
Posts: 70
After forgetting about it and then looking afresh, I found that URL method 2 was in fact working fine for me - it is the friendly URL option that I have a problem with.

Here are the combinations I tried :

Default = works :
http://infotain.grabeuh.com/story.ph...or_densi ties

URL Method 2 = works :
http://infotain.grabeuh.com/story/102

URL Method 2 + Friendly story URL = does not work :
http://visualize_online_map_visitor_densities/

Has anyone already seen that sort of behavior before ?

My .htaccess attached for reference - actually the default one with just the "www" rewrite commented out and the two custom category rewrite lines replacing the default ones.
Attached Files
File Type: txt htaccess_grabeuh.txt (6.4 KB, 53 views)
Reply With Quote
  #2 (permalink)  
Old 10-16-2007, 12:29 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,835
Go into category manager and read the bottom where it says, if using url method 2 please add the following to your .htaccess.

It generates it for you.


Download the full Pligg Module Pack





Reply With Quote
  #3 (permalink)  
Old 10-16-2007, 12:45 PM
liotier's Avatar
Casual Pligger
Pligg Version: Slightly modified 9.8.2
Pligg Template: Slightly modified Yget from 9.8.2
 
Join Date: Jul 2007
Location: Paris La Défense, France
Posts: 70
Quote:
Originally Posted by chuckroast View Post
Go into category manager and read the bottom where it says, if using url method 2 please add the following to your .htaccess. It generates it for you.
I did that already - see lines 36-37 of my .htaccess

In addition, the problem I describe is confined to the story URL. The category URL are correct, although they all link to the default category (which is another unrelated and not yet understood problem that I'll deal with later).

For some reason the host name is absent from the link generated by URL method 2 + friendly URL. From reading the rules in the .htaccess I don't quite understand how one of them could be the culprit. Maybe the problem is somewhere else.
Reply With Quote
  #4 (permalink)  
Old 10-17-2007, 05:26 AM
liotier's Avatar
Casual Pligger
Pligg Version: Slightly modified 9.8.2
Pligg Template: Slightly modified Yget from 9.8.2
 
Join Date: Jul 2007
Location: Paris La Défense, France
Posts: 70
Quote:
Originally Posted by liotier View Post
The category URL are correct, although they all link to the default category (which is another unrelated and not yet understood problem that I'll deal with later).
The noop category problem is now solved (cf. http://forums.pligg.com/general-help...html#post43213).

Now only the story URL problem that is the topic of this thread remains... And I still can't imagine even the beginning of a clue...
Reply With Quote
  #5 (permalink)  
Old 10-18-2007, 01:13 PM
New Pligger
 
Join Date: Oct 2007
Posts: 3
Hi, I've the same problem!
Url method 2 + Friendly URL = pligg doesn't work fine.

If the post have URL:
The label "continue >>" points to an address like "http://article_title/" instead of "http://www.mydomain.com/article_title/"

if the post doesn't have URL:
The title and the label "continue >>" have a bad links that points to "http://article_title-1/" instead of "http://www.mydomain.com/article_title-1/"

To see the problem live, visit my site:
SegnaPosto.net

Thanks for any help,
Mick

Last edited by dollars5; 10-18-2007 at 01:39 PM. Reason: wrong post edited :)
Reply With Quote
  #6 (permalink)  
Old 10-18-2007, 01:40 PM
New Pligger
 
Join Date: Oct 2007
Posts: 3
Ok, I've resolved the problem!

Changing the database language you'll encounter the above describled problem.

To resolve it, you've to restore the database language to EN.

It's magic ;-)
Mick
Reply With Quote
  #7 (permalink)  
Old 10-18-2007, 01:43 PM
New Pligger
 
Join Date: Oct 2007
Posts: 3
Quote:
Originally Posted by dollars5 View Post
@picmickL you would have given a warning that your site is Adult content and NSFW - damn I opened it with my boss standing behind me - a total shock
No!
My pligg website deal with Google Earth and KML file and doesn't have any banner. It hasn't adult content! It's the truth!

Mick
Reply With Quote
  #8 (permalink)  
Old 10-18-2007, 02:08 PM
liotier's Avatar
Casual Pligger
Pligg Version: Slightly modified 9.8.2
Pligg Template: Slightly modified Yget from 9.8.2
 
Join Date: Jul 2007
Location: Paris La Défense, France
Posts: 70
Quote:
Originally Posted by picmick View Post
Changing the database language you'll encounter the above describled problem.
To resolve it, you've to restore the database language to EN.
Not quite so in my case. As you may have read, I did revert the database language from 'fr' to 'en' and that solved the category problem. Although it did not solve the story URL, there actually was a change I had not noticed :

- No friendly URL - works fine (same as before) :
http://infotain.grabeuh.com/story/109

- Friendly story URL - link is now fine but it is 404 ("Oops, what you're looking for isn't here!") (and less importantly I don't understand why there is a "1" at the end of the URL) :
http://infotain.grabeuh.com/Security... ity_audits-1/

I did not change my .htaccess in the meantime, so the one attached to the first post is still valid.

So indeed reverting to 'en' as a database language is an improvement, but I'm not quite there yet.
Reply With Quote
  #9 (permalink)  
Old 10-19-2007, 06:49 AM
liotier's Avatar
Casual Pligger
Pligg Version: Slightly modified 9.8.2
Pligg Template: Slightly modified Yget from 9.8.2
 
Join Date: Jul 2007
Location: Paris La Défense, France
Posts: 70
I don't know who marked it as solved... As I explain in the previous post, it is definitely not yet solved...
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Url Method 2 works for everything except stories coreyvf Questions and Comments 2 10-11-2009 01:07 AM
HTTP POST method for form submission works sporadically nirmalj Questions and Comments 1 06-19-2009 09:05 AM
Friendly URL's for categories works, but for stories not sixlaneve Questions and Comments 6 12-06-2008 09:28 AM
Has anyone got Friendly Urls (Url Method 2) working? revolver Questions and Comments 11 05-08-2008 12:32 AM
Friendly URL, URL method and htaccess wanderingmind Questions and Comments 31 01-17-2008 05:09 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development