Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-14-2006, 11:25 AM
sixlaneve's Avatar
Casual Pligger
 
Join Date: Dec 2006
Location: Rome
Posts: 81
Thanks: 7
Thanked 6 Times in 5 Posts
Send a message via ICQ to sixlaneve Send a message via AIM to sixlaneve
Friendly URL's for categories works, but for stories not

as in the title.

I've got the modrewrite in the server, .htaccess is uploaded, URLMethod is set to 2 and Friendly URL's for categories and Friendly URL's for stories are set to true.

Everything works fine, apart from the stories... I get either a blank page (is Friendly URL's for stories is false) or a 404 (if Friendly URL's for categories is true)

any idea/help?
Reply With Quote
  #2 (permalink)  
Old 12-14-2006, 02:04 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,415
Thanks: 171
Thanked 440 Times in 279 Posts
Hi sixlaneve

Could you paste your .htaccess file?
I am using urlmethod 2 and my .htaccess looks like this..

##### Re-directing Begin #####
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.scooptube.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^www.scooptube\.com$ [NC]
RewriteRule ^(.*)$ http://scooptube.com/$1 [R=301,L]
##### Re-directing End #####

##### Friendly URLs Begin #####
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^story/([0-9]+)/?$ story.php?id=$1 [L]
RewriteRule ^story/([a-zA-Z0-9-]+)/?$ story.php?title=$1 [L]
RewriteRule ^category/([a-zA-Z0-9]+)/?$ ?category=$1 [L]
RewriteRule ^category/queued/([a-zA-Z0-9]+)/?$ shakeit.php?category=$1 [L]
RewriteRule ^shakeit/([a-zA-Z0-9]+)/?$ shakeit.php?category=$1 [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/?$ bugreport.php
RewriteRule ^tag/(.+)/?$ search.php?search=$1&tag=true [QSA,NC,L]
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 ^admin/?$ admin_index.php
RewriteRule ^tagcloud/?$ cloud.php
RewriteRule ^sneak/?$ sneak.php
RewriteRule ^pliggadmin/?$ admin_index.php
RewriteRule ^logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?op=logout&return=$1/$2
##### Friendly URLs End #####
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #3 (permalink)  
Old 12-15-2006, 12:58 PM
sixlaneve's Avatar
Casual Pligger
 
Join Date: Dec 2006
Location: Rome
Posts: 81
Thanks: 7
Thanked 6 Times in 5 Posts
Send a message via ICQ to sixlaneve Send a message via AIM to sixlaneve
##### Re-directing Begin #####
Options +Indexes +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
## RewriteRule ^(.*)index\.php$ /$1 [R=301,L] ##
##### Re-directing End #####

##### Friendly URLs Begin #####
Options +Indexes +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^story/([0-9]+)/?$ story.php?id=$1 [L]
RewriteRule ^story/([a-zA-Z0-9-]+)/?$ story.php?title=$1 [L]
##### You can find the below line pre-made for you in the category management section of the admin panel ######
RewriteRule ^(all|pligg|category1|category2)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]
RewriteRule ^recommend/([a-zA-Z0-9-]+)/?$ recommend.php?id=$1 [L]
RewriteRule ^category/([a-zA-Z0-9]+)/?$ ?category=$1 [L]
RewriteRule ^category/queued/([a-zA-Z0-9]+)/?$ shakeit.php?category=$1 [L]
RewriteRule ^shakeit/([a-zA-Z0-9]+)/?$ shakeit.php?category=$1 [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/?$ bugreport.php
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 ^admin/?$ admin_index.php
RewriteRule ^tagcloud/?$ cloud.php
RewriteRule ^tagcloud/range/([0-9]+)/?$ cloud.php?range=$1 [L]
RewriteRule ^tag/(.+)/?$ index.php?search=$1&tag=true [QSA,NC,L]
RewriteRule ^sneak/?$ sneak.php
RewriteRule ^pliggadmin/?$ admin_index.php
RewriteRule ^logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ login.php?op=logout&return=$1/$2
##### Friendly URLs End #####
Reply With Quote
  #4 (permalink)  
Old 12-15-2006, 01:26 PM
Casual Pligger
Pligg Version: 995
Pligg Template: Yget
 
Join Date: Sep 2006
Posts: 61
Thanks: 12
Thanked 3 Times in 3 Posts
@chuckroast
Does your "edit" link work in the comments section? I am using the same file as you do and it doesn't. Please let me know.
__________________
Pligg - a Swiss version of Pligg (very much online)
Reply With Quote
  #5 (permalink)  
Old 12-17-2006, 08:45 AM
sixlaneve's Avatar
Casual Pligger
 
Join Date: Dec 2006
Location: Rome
Posts: 81
Thanks: 7
Thanked 6 Times in 5 Posts
Send a message via ICQ to sixlaneve Send a message via AIM to sixlaneve
chuckroast, I tried your file (of course i changed the domain name)... URL Method 2 now works correctly for stories, but friendly url doesn't still work for stories.

also, when I click on the link of the original news, it goes to the same page.

:/
Reply With Quote
  #6 (permalink)  
Old 01-16-2007, 12:20 AM
New Pligger
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Did you paste the rewrite code for categories?

I may not understand your problem correctly, but this sounds like one I had. I realized that I hadn't updated line 16 in the .htaccess file with the new on provided at the bottom of the Category Management page.

Line 15, above says: ##### When categories change, you must replace the following line with the new one pre-made for you in the category management section of the admin panel, bottom of the page. ######

This update made the story titles actually link to the story pages.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Friendly urls not working WebDesignGoldmine General Help 6 06-21-2008 04:46 AM
Has anyone got Friendly Urls (Url Method 2) working? revolver General Help 11 05-08-2008 12:32 AM
Seo Friendly Urls - Urlmethod 2 canadianguy33 General Help 15 05-12-2007 09:57 PM
Search and friendly urls problem pligiro Bug Report 1 02-27-2007 11:43 AM
Simplified Friendly Urls idea revolver Suggestions 0 11-07-2006 01:20 PM


Search Engine Friendly URLs by vBSEO 3.2.0