Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-20-2006, 12:07 AM
canadianguy33 canadianguy33 is offline
New Pligger
 
Join Date: Apr 2006
Posts: 28
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Seo Friendly Urls - Urlmethod 2

Hello fellow pliggers,

I have a pligg site www.hollywoodscoops.com and I'm pretty happy with it thus far except that I can't get friendly urls to work.

My htaccess file is as follows:

##### Re-directing Begin #####
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.hollywoodscoops.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^hollywoodscoops\.com$ [NC]
RewriteRule ^(.*)$ http://www.hollywoodscoops.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 ^(all|pligg|category1|category2|category3)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [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 #####

Currently I have the urlmethod in the config.php file set to urlmethod 1 so as to keep the site functional. I've tried switching it to urlmethod 2 but I get 'this page is not found' when clicking on the links.

As far as I know, I'm only supposed to change the .htaccess file and config.php to get friend urls working. Is that correct?


Any help would be greatly appreciated.

Thanks,

Jay
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-20-2006, 08:08 AM
thoughton thoughton is offline
New Pligger
 
Join Date: Jul 2006
Posts: 16
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Hi CanadianGuy,

Sorry this isn't an answer to your question, but may I please ask what precise version of Pligg you are using? I've been asking in these forums which version of Pligg allows voting in Win IE6 but no one seems to know. I notice your site works in IE6, so I though I'd ask.

Compliments on a great site by the way. Easily the best-looking Pligg site I've seen so far. The vote boxes are particularly excellent :)

Cheers,

Tim Houghton
Reply With Quote
  #3 (permalink)  
Old 07-20-2006, 09:05 AM
canadianguy33 canadianguy33 is offline
New Pligger
 
Join Date: Apr 2006
Posts: 28
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks thoughton.

I'm using version 7 http://www.pligg.com/forum/showthread.php?t=432 and I based my site off the mollio-beat template.

Also, although I like the mollio-beat template the most, if I were to build this site again I'd start with the default template pligg uses because I've had a few headaches with mollio-beat. I'm not knocking the person that did the mollio-beat (whoever you are, thanks a ton for your hard work!) but it's just easier to mod the default and keep up to speed with all the changes if you sick with the default version.
Reply With Quote
  #4 (permalink)  
Old 07-20-2006, 09:32 AM
3dKiller's Avatar
3dKiller 3dKiller is offline
Constant Pligger
 
Join Date: Mar 2006
Location: Newport Beach
Posts: 159
Downloads: 0
Uploads: 0
Thanks: 24
Thanked 2 Times in 1 Post
@thoughton - I answered your question where you originally asked it.

@canadianguy33 - You need to modify this line:

RewriteRule ^(all|pligg|category1|category2|category3)/([a-zA-Z0-9-]+)/?$ story.php?title=$2 [L]

Change pligg|category1|category2, etc. to read: movies|music|television, etc.

As for categories w/more than one word, separate words w/an underscore like this: celebrity_fashion. Again, this applies to the .htaccess file only. Make sure you add all of your categories, saving 'all|' and removing 'category1', etc.

OK, now I need our help. Who did your graphics? What js are you using for the 'how it works' pull down effect? How did you append 'click here for story...' to the end of the story description?

Please let me know as I need these things for Pligg's new template.

Thanks,

~3d
Reply With Quote
  #5 (permalink)  
Old 07-20-2006, 01:36 PM
jeansege jeansege is offline
Pligg Donor
 
Join Date: Jul 2006
Posts: 15
Downloads: 10
Uploads: 0
Thanks: 0
Thanked 2 Times in 2 Posts
canadianguy33: Did you think...

Hi... love the style of your site... Did you think about releasin the template of your adaptation ? I would sincerely love too... Of course, as i'm having a completely different target, I'd change the whole look and feel.

I guess I'm having the same problems with Mollio... Hard to configure.

Cheers,

Jeansege from 514
Reply With Quote
  #6 (permalink)  
Old 07-21-2006, 11:02 AM
canadianguy33 canadianguy33 is offline
New Pligger
 
Join Date: Apr 2006
Posts: 28
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks inbox but that didn't solve the friendly url problem. :( These friendly urls are going to be the death of me! lol It's funny that such a little thing is giving me so much trouble.

As for the graphics, I did them myself. As for the sliding thing; it's http://script.aculo.us/ . it's pretty simple to get going and they have a good step by step, if you have any trouble hit me up.

Jeansege, thanks for the complements. I've been toying with the idea of doing a template but not with Hollywood Scoops because I really made a mess of it. lol I figure I'll do a template when I get a better grasp on pligg. ;)
Reply With Quote
  #7 (permalink)  
Old 07-21-2006, 07:05 PM
3dKiller's Avatar
3dKiller 3dKiller is offline
Constant Pligger
 
Join Date: Mar 2006
Location: Newport Beach
Posts: 159
Downloads: 0
Uploads: 0
Thanks: 24
Thanked 2 Times in 1 Post
canadianguy33,

Why doesn't it work... what happens specifically?

Oh, and would you please be so kind as to post the code you used for appending "click here to read story" in the storybox? Doing so will help future Pliggers.

Thanks,

~3d
Reply With Quote
  #8 (permalink)  
Old 07-21-2006, 10:41 PM
canadianguy33 canadianguy33 is offline
New Pligger
 
Join Date: Apr 2006
Posts: 28
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
3d I don't know why it doesn't work.

The urls show up the way I want them to ie. http://www.hollywoodscoops.com/story...he-story-title but I get 404 errors when I click on them.

Also, here's the code for the click here for story link

<a href="{$url}">Click here for story...</a>

Just paste it in the link_summary.tpl in your template just after {$story_content}

I think it would be cool if those links could be dynamic for SEO purposes. Instead of having 'Click Here for Story' it'd be awesome if it was 'Click here for keyword keyword' where the keywords would be specific to that story. ;)
Reply With Quote
  #9 (permalink)  
Old 07-24-2006, 05:51 AM
thoughton thoughton is offline
New Pligger
 
Join Date: Jul 2006
Posts: 16
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by canadianguy33
I think it would be cool if those links could be dynamic for SEO purposes. Instead of having 'Click Here for Story' it'd be awesome if it was 'Click here for keyword keyword' where the keywords would be specific to that story. ;)
But you already have the keyword anchor text in your story's title, which is good SEO for you. Surely having good keywords in the outgoing 'read more' link would be good SEO for the target site, with very minimal impact on your own ranking?

I know about linking to on-topic authority sites, but this seems to be stretching the theory a bit.
Reply With Quote
  #10 (permalink)  
Old 07-28-2006, 09:47 AM
PaxIndustria PaxIndustria is offline
New Pligger
 
Join Date: Mar 2006
Posts: 4
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Bump

Just to bump this. I have just tried updating my version of pligg to 7.2 and I get the same problem. I am installin into a subdir "/data" and when I click on, well anything.. I get a 404 Error.

my site is here www.ob3y.com/data

for example when I try to select "Search for Stories" It tries to take to to this url

http://www.ob3y.com/data/shakeit/

and informs me that it can't find the page (For good reason, the /data/shakeit/ dir doesn't exist! I've tried updating my .htaccess file with some of the ones i've seen floating around, but that didn't seem to help. When I did the upgrade, I ran but the DB upgrade, with success, and also the upgrade_link_url.php link, and that seemed to work fine.

If anyone has any idea, I'd appreachate it!

-Pax
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

vB 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
RSS Feed has different URLS than site... nickaster Pligg Templates 0 07-07-2006 03:37 PM
Friendly urls sid Bug Report 0 07-01-2006 11:14 PM
Changing the URLs shrimp General Help 2 06-14-2006 12:18 PM
Friendly URLs - voting/comment rating error Coop1979 Bug Report 4 04-28-2006 09:21 PM
Friendly URLs andyc General Help 12 03-20-2006 05:36 AM


LinkBacks Enabled by vBSEO 3.0.0