Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2006, 08:44 PM
revolver revolver is offline
Constant Pligger
 
Join Date: Oct 2006
Posts: 232
Downloads: 5
Uploads: 0
Thanks: 56
Thanked 22 Times in 18 Posts
Has anyone got Friendly Urls (Url Method 2) working?

A few people here are having the same problem trying to get Friendly Urls working. Choosing Url Method 2 seems to correctly set static, user friendly urls for internal links (ie: /story/storytitle) but these links generate 404 errors so Url Method 2 can't be used.

Is this a configuration problem on our end or are there are still problems that need to be ironed out in the code before Url Method 2 can be used?

Also ... this thread from August mentions a problem with Pligg's static url system keeping each story at 3 different urls which google defines as spam. Has this been resolved?

I think this is a top priority for several users (I am holding off on launching a site until i can find a solution) because of the importance static urls play in being properly indexed by search engines. So any info would be greatly appreciated.





Once there are some definitive answers on how to get Frienldy Urls working I am happy to add them to the wiki: Friendly Urls and Url Method
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 11-05-2006, 08:52 PM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,577
Downloads: 61
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
URL method 2 relies on your .htaccess file. Pligg gives you one to work with but it may need some more work. You don't have to wait for someone else to find a solution for you before you launch your site. Launch it with URL method 1 and then change it to 2 when you can get it working.
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
Reply With Quote
  #3 (permalink)  
Old 11-06-2006, 12:18 PM
revolver revolver is offline
Constant Pligger
 
Join Date: Oct 2006
Posts: 232
Downloads: 5
Uploads: 0
Thanks: 56
Thanked 22 Times in 18 Posts
Is there any way to get Pligg to only use Friendly urls for stories and categories and the published and queued pages and leave the rest of the site as dynamic urls?

MediaWiki sort of works like this so that log in pages etc. still use dynamic urls. This allows for a simple 2 line .htaccess modification to get Friendly Urls to work and no additional maintenance of the .htaccess file as you add supporting pages to the site.
Reply With Quote
  #4 (permalink)  
Old 03-04-2008, 09:07 AM
seolinks seolinks is offline
New Pligger
 
Join Date: Feb 2008
Posts: 10
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
nobody has an answer
Reply With Quote
  #5 (permalink)  
Old 03-04-2008, 09:55 AM
seolinks seolinks is offline
New Pligger
 
Join Date: Feb 2008
Posts: 10
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
I got them working on Verschiet.be and accept Donations

Last edited by seolinks : 03-04-2008 at 10:01 AM.
Reply With Quote
  #6 (permalink)  
Old 03-05-2008, 04:22 AM
scotjam scotjam is offline
Pligg Donor
Pligg Version: 9.9
 
Join Date: Jan 2008
Location: London and Glasgow
Posts: 12
Downloads: 7
Uploads: 0
Thanks: 4
Thanked 0 Times in 0 Posts
I'm running 9.9.0 and its still not clear to me if anyone has URL Method 2 working or not. Can anyone say?
Reply With Quote
  #7 (permalink)  
Old 03-05-2008, 06:44 AM
aviatrix aviatrix is offline
New Pligger
 
Join Date: Feb 2008
Posts: 1
Downloads: 4
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
well i cant them to work too :/ i read somewhere that its mod_rewrite problem but since im using custum php.ini im prety shure it cant be from that :S i edited correctly the htacces and still no succes .. if any1 can help .. pls do it
Reply With Quote
  #8 (permalink)  
Old 03-24-2008, 02:49 PM
eijila eijila is offline
New Pligger
Pligg Version: 9.9
Pligg Template: czNet
 
Join Date: Apr 2007
Location: USA
Posts: 15
Downloads: 15
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Did you add following code to htaccess?

RewriteRule ^(all|news|album|single|dvd%2Cmovie|etc)/([^/]+)/?$ story.php?title=$2 [L]
RewriteRule ^(all|news|album|single|dvd%2Cmovie|etc)/?$ ?category=$1 [L]

you should add codes which you can find under category management.
Reply With Quote
  #9 (permalink)  
Old 04-20-2008, 06:53 PM
na3s na3s is offline
Casual Pligger
 
Join Date: Apr 2008
Posts: 51
Downloads: 7
Uploads: 0
Thanks: 3
Thanked 1 Time in 1 Post
The code above doesn't work for me, mostly because in 9.9.0 ALL links go to URL Method 2. I use the code below, it may be sloppy but it works fine. Note: This code is super temporary, the way the code is written for pligg currently makes this task difficult (especially since upgrades will probably break this code.) However, it should work fine for 9.9.0. USE AT OWN RISK.

Check here for urlMethod 2 Wiki

#start

RewriteEngine On

#categories
RewriteRule ^category/(.*)$ index.php?category=$1 [L]
RewriteRule ^category/(.*)$ upcoming.php?category=$1 [L]

#admin function from story
RewriteRule ^story/(.*)/edit/$ editlink.php?id=$1 [L]
RewriteRule ^story/(.*)/modify/main/$ linkadmin.php?id=$1&action=main [L]

#stories various rules to cover multiple configs. (friendlyURL config...)
RewriteRule ^story/title/(.*)$ story.php?title=$1 [L]
RewriteRule ^story/title/(.*)/$ story.php?title=$1 [L]
RewriteRule ^(.*)/(.*)/$ story.php?title=$2&category=$1 [L]

#random story
RewriteRule ^story/(.*)$ story.php?id=$1 [L]

#upcoming main and sorting
RewriteRule ^upcoming$ upcoming.php [L]
RewriteRule ^upcoming/(.*)/$ upcoming.php?part=upcoming&order=$1 [L]
RewriteRule ^upcoming/(.*)/category/(.*)$ upcoming.php?part=upcoming&order=$1&category=$2 [L]

#published main and sorting
RewriteRule ^published$ index.php [L]
RewriteRule ^published/(.*)/$ index.php?part=$1 [L]
RewriteRule ^published/(.*)/category/(.*)$ index.php?part=$1&category=$2 [L]

#misc
RewriteRule ^live$ live.php [L]
RewriteRule ^admin$ admin_index.php [L]
RewriteRule ^topusers$ topusers.php [L]
RewriteRule ^submit$ submit.php [L]
RewriteRule ^rss$ rss.php [L]

#outgoing
RewriteRule ^out/(.*)$ out.php?title=$1 [L]

#tags
RewriteRule ^tagcloud$ cloud.php [L]
RewriteRule ^tag/(.*)$ search.php?search=$1&tag=true [L]
RewriteRule ^tag/range/(.*)$ cloud.php?range=$1 [L]

RewriteRule ^user$ user.php [L]
RewriteRule ^user/view/(.*)/login/(.*)$ user.php?login=$2&view=$1 [L]
RewriteRule ^user/view/profile/(.*)$ user.php?login=$1 [L]

#sitemap module rewrites
RewriteRule ^sitemapindex.xml module.php?module=xml_sitemaps_show_sitemap [L]
RewriteRule ^sitemap-([0-9a-z]+).xml module.php?module=xml_sitemaps_show_sitemap&i=$1 [L]

#end

I may have missed some pages depending on the modules and your own configuration. (for example, there is not Adding Friends or Private Messenging support in the above code, but could be added easily.) Also, it is possible I missed rules, because pligg has different urls for items depending on configs and pligg version.

Hope it helps somebody.

Last edited by na3s : 04-20-2008 at 09:46 PM.
Reply With Quote
The Following User Says Thank You to na3s For This Useful Post:
  #10 (permalink)  
Old 04-22-2008, 03:27 AM
tmeefpm tmeefpm is offline
New Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Location: Barcelona, Spain
Posts: 4
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Angry

Hi:

I don't get the url 2 method working and am also waiting to solve it in order to get my website active. I want Google to index well my pages so I need this htaccess trick.

As I said in another post, I found that if you change one letter of the RewriteRule command, it works. For instance:

RewriteRule ^live/?$ live.php
with http://www.mydomain.com/live
doesn't work, 404 error (page not found).

But
RewriteRule ^livp/?$ live.php
with http://www.mydomain.com/livp
Works and executes well live.php

And
RewriteRule ^liv/?$ live.php
with http://www.mydomain.com/liv
triggers a 500 error(internal error)

I don't understand the reason why "live" doesn't work and "livp" works. Where could the system keep these words in order to fail in the first and work well in the second? I will appreciate very much if someone can enlighten this matter. Thanks.

Antonio
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
Seo Friendly Urls - Urlmethod 2 canadianguy33 General Help 15 05-12-2007 08:57 PM
friendly UR's not working the way they should work... PurpleCow Bug Report 16 04-25-2007 09:36 AM
RSS friendly link not working. can8dn General Help 4 01-03-2007 05:11 PM
$16 to Anyone That Can Solve My Friendly Url Problem canadianguy33 General Help 2 07-21-2006 02:49 PM
Friendly urls sid Bug Report 0 07-01-2006 11:14 PM


LinkBacks Enabled by vBSEO 3.0.0