The Fix:
in story.php after line 32 put the redirection in an if statement
Code:
if ($url != my_pligg_base."/story.php?title=")
{
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . $url );
die();
}

![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| users who upgrade from old versions can no longer access old posts if they switch to friendly urls since the new version tries to use the title as a url and old posts do not have the title_url field filled in. The Fix: in story.php after line 32 put the redirection in an if statement Code: if ($url != my_pligg_base."/story.php?title=")
{
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . $url );
die();
}
|
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to pass link id to story.php? | ivytony | Questions and Comments | 0 | 03-05-2008 01:05 PM |
| [SOLVED] Bug in story.php with category URL | ablaye | Questions and Comments | 1 | 01-18-2008 07:11 PM |
| adding traffic stats to story.php | bbrian017 | Questions and Comments | 2 | 11-26-2007 09:48 AM |
| Set the story.php page title | spuds | Questions and Comments | 0 | 11-10-2007 02:02 PM |
| story.php forum like feature | noyp | Questions and Comments | 2 | 12-06-2006 02:58 PM |