have resolved the story and category problem

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-16-2006, 08:51 PM
New Pligger
 
Join Date: Jan 2006
Posts: 9
sorry to all!My English is poor,I dont know if anybody can understand me,but i hope it will help other people.
I have resolved the story and category problem. maybe about the file .htaccess
I got beta 5 ,RH Linux 9, apache 2.0.46
like others ,the /category/1/ return 404 eeror
I find the file .htaccess in beta 5 does not work ,so I copy it into the end of file httpd.conf , And "RewriteBase /" does not work either.

so i modify them like the following text


RewriteEngine On
Options +FollowSymlinks
Options Indexes FollowSymLinks
#RewriteBase /
RewriteRule ^/story/([0-9]+)/?$ /story.php?id=$1 [L]
RewriteRule ^/category/([0-9]+)/?$ /index.php?category=$1 [L]
RewriteRule ^/category/([0-9]+)/digg/?$ /shakeit.php?category=$2 [L]
RewriteRule ^/story/([0-9]+)/editcomment/([0-9]+)?$ /edit.php?id=$1&commentid=$2
RewriteRule ^/story/([0-9]+)/edit/?$ /editlink.php?id=$1
RewriteRule ^/story/([0-9]+)/modify/([a-z]+)/?$ /linkadmin.php?id=$1&action=$2
RewriteRule ^/user/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ /user.php?login=$1&view=$2
RewriteRule ^/user/([a-zA-Z0-9-]+)/?$ /user.php?login=$1
RewriteRule ^/search/([a-zA-Z0-9-]+)/?$ /index.php?search=$1
RewriteRule ^/login/?$ /login.php
RewriteRule ^/login/([a-zA-Z0-9-]+)/?$ /login.php?return=$1
RewriteRule ^/login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ /login.php?return=$1/$2
RewriteRule ^/register/?$ /register.php
RewriteRule ^/user/?$ /user.php
RewriteRule ^/topusers/?$ /topusers.php
RewriteRule ^/topstories/?$ /topstories.php
RewriteRule ^/about/([a-zA-Z0-9-]+)/?$ /faq-$1.php
RewriteRule ^/shakeit/?$ /shakeit.php
RewriteRule ^/submit/?$ /submit.php
RewriteRule ^/bugreport/?$ http://www.pligg.com/forum/forumdisplay.php?f=13
RewriteRule ^/rss2/?$ /rss2.php
RewriteRule ^/rss2/([a-zA-Z0-9-]+)/?$ /rss2.php?status=$1
RewriteRule ^/trackback/([0-9]+)/?$ /trackback.php?id=$1
RewriteRule ^/profile/?$ /profile.php

RewriteRule ^/logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ /login.php?op=logout&return=$1/$2


and now it works!
hope it will help others.
Reply With Quote
  #2 (permalink)  
Old 01-16-2006, 10:13 PM
Constant Pligger
 
Join Date: Jan 2006
Posts: 189
thanks a lot!
Reply With Quote
  #3 (permalink)  
Old 01-17-2006, 09:23 AM
New Pligger
 
Join Date: Dec 2005
Posts: 20
WTF? This just gives me 404s.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Category problem g.ciprian Questions and Comments 16 02-25-2010 08:28 AM
Control of meta description - categories Divisive Cotton Questions and Comments 65 11-06-2009 07:10 PM
Default category when submitting a story? bbrian017 Questions and Comments 9 04-01-2008 03:27 PM
Editting story tags and category bug formicin Questions and Comments 2 03-29-2007 02:03 PM
I can't see category in my story Juju66 Questions and Comments 1 03-08-2007 10:02 AM


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