![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| 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 |
| Sponsored Links |
|
Check out the New Templates at the Pligg Pro Shop.
|
| ||||
| 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. |
| |||
| 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. |
| |||
| nobody has an answer |
| |||
| I got them working on Verschiet.be and accept Donations Last edited by seolinks : 03-04-2008 at 10:01 AM. |
| |||
| 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? |
| |||
| 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 |
| |||
| 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. |
| |||
| 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. |
| The Following User Says Thank You to na3s For This Useful Post: | ||
| |||
| 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 |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
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 |




Linear Mode

