![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| 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
__________________ Hollywood Scoops - The most relevant Hollywood Rag on the Net! |
| Sponsored Links |
| |||
| 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 |
| |||
| 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.
__________________ Hollywood Scoops - The most relevant Hollywood Rag on the Net! |
| |||
| 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 |
| |||
| 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. ;)
__________________ Hollywood Scoops - The most relevant Hollywood Rag on the Net! |
| ||||
| 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 |
| |||
| 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. ;)
__________________ Hollywood Scoops - The most relevant Hollywood Rag on the Net! |
| |||
| Quote:
I know about linking to on-topic authority sites, but this seems to be stretching the theory a bit. |
| |||
| 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 |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
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 |




Linear Mode

