Project

General

Profile

Pligg » History » Revision 2

Revision 1 (CyberCr33p, 2009-02-04 17:23) → Revision 2/5 (CyberCr33p, 2009-07-06 21:31)

Here are the rewrites for Pligg CMS version 1.0: CMS: 

 <pre> 
 url.rewrite-once= ( 

 # You have to add each category on these 2 lines 
 "^/phpmyadmin.*" "^/(all|Technology|Apple|Windows|Unix-Linux-BSD)/([^/]+)/?$" => "$0", "/story.php?title=$2", 
 "^/webmail.*" "^/(all|Technology|apple|Windows|Unix-Linux-BSD)/?$" => "$0", "/?category=$1", 

 "^/story/([0-9]+)/?$" => "/story.php?id=$1", 
 "^/awstats.*" "^/story/title/([^/]+)/?$" => "$0", "/story.php?title=$1", 
 "^//?$" "^/story/([0-9]+)/editcomment/([0-9]+)/?$" => "/index.php", 

 "^/advanced-search/?$" => "/advancedsearch.php", "/edit.php?id=$1&commentid=$2", 
 "^/cache/([0-9]+)/?$" "^/story/([0-9]+)/edit/?$" => "/index.php", "/editlink.php?id=$1", 
 "^/cache/admin_c([0-9]+)/?$" "^/story/([0-9]+)/modify/([a-z]+)/?$" => "/index.php", "/linkadmin.php?id=$1&action=$2", 
 "^/cache/templates_c/([0-9]+)/?$" "^/recommend/([a-zA-Z0-9-]+)/?$" => "/index.php", "/recommend.php?id=$1", 
 "^/category/([^/]+)/?$" => "/index.php?category=$1", 
 "^/category/([^/]+)/([^/]+)/?$" "^/upcoming/category/([^/]+)/?$" => "/story.php?title=$2", "/upcoming.php?category=$1", 
 "^/live/?$" "^/upcoming/([a-zA-Z0-9]+)/?$" => "/live.php", "/upcoming.php?part=upcoming&order=$1", 
 "^/login/?$" "^/inbox/?$" => "/login.php", "/user.php?view=inbox", 
 "^/login/([a-zA-Z0-9-]+)/?$" "^/user/?$" => "/login.php?return=$1", "/user.php", 
 "^/login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$" "^/user/view/([a-zA-Z0-9-]+)/?$" => "/login.php?return=$1/$2", "/user.php?view=$1", 
 "^/logout/?$" "^/user/view/([a-zA-Z0-9+]+)/([a-zA-Z0-9+]+)/?$" => "/login.php?op=logout&return=index.php", "/user.php?view=$1&login=$2", 
 "^/logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$" "^/user/view/([a-zA-Z0-9+]+)/login/([a-zA-Z0-9+]+)/?$" => "/login.php?op=logout&return=$1/$2", "/user.php?view=$1&login=$2", 
 "^/out/([\d]+)/?$" "^/user/([a-zA-Z-]+)/link/([0-9+]+)/?$" => "/out.php?id=$1", "/user_add_remove_links.php?action=$1&link=$2", 
 "^/out/(https?:.+)$" "^/published/?$" => "/out.php?url=$1", "/index.php", 
 "^/out/([^/]+)/?$" "^/published/([a-zA-Z0-9-]+)/?$" => "/out.php?title=$1", "/index.php?part=$1", 
 "^/profile/?$" "^/published/([a-zA-Z0-9-]+)/category/([a-zA-Z0-9_-]+)/?$" => "/profile.php", "/index.php?part=$1&category=$2", 
 "^/recommend/([a-zA-Z0-9-]+)/?$" "^/upcoming/([a-zA-Z0-9-]+)/category/([a-zA-Z0-9_-]+)/?$" => "/recommend.php?id=$1", "/upcoming.php?part=upcoming&order=$1&category=$2", 
 "^/register/?$" => "/register.php", 
 "^/search/([^/]+)/page/(\d+)/?$" => "/search.php?search=$1&page=$2", 
 "^/search/(.+)/?$" => "/search.php?search=$1", 
 "^/searchurl/(.+)/?$" => "/search.php?url=$1", 
 "^/settemplate/?$" "^/login/?$" => "/settemplate.php", "/login.php", 
 "^/story/([0-9]+)/?$" "^/login/([a-zA-Z0-9-]+)/?$" => "/story.php?id=$1", "/login.php?return=$1", 
 "^/story/([^/]+)/?$" "^/login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$" => "/story.php?title=$1", "/login.php?return=$1/$2", 
 "^/story/([0-9]+)/editcomment/([0-9]+)/?$" "^/register/?$" => "/edit.php?id=$1&commentid=$2", "/register.php", 
 "^/story/([0-9]+)/edit/?$" => "/editlink.php?id=$1", 
 "^/submit/?$" => "/submit.php", 
 "^/tag/(.+)/(.+)/?$" => "/search.php?search=$1&tag=true&from=$2", 
 "^/tag/(.+)/?$" => "/search.php?search=$1&tag=true", 
 "^/tagcloud/?$" => "/cloud.php", 
 "^/tagcloud/range/([0-9]+)/?$" => "/cloud.php?range=$1", 
 "^/topusers/?$" => "/topusers.php", 
 "^/trackback/([0-9]+)/?$" "^/about/([a-zA-Z0-9-]+)/?$" => "/trackback.php?id=$1", "/faq-$1.php", 
 "^/upcoming/?$" => "/upcoming.php", 
 "^/upcoming/category/([^/]+)/?$" "^/submit/?$" => "/upcoming.php?category=$1", "/submit.php", 
 "^/upcoming/category/([^/]+)/page/(\d+)/?$" "^/rss/?$" => "/upcoming.php?category=$1&page=$2", "/rss.php", 
 #"^/upcoming/([^/]+)/?$" "^/rss/([a-zA-Z0-9-]+)/?$" => "/upcoming.php?part=$1", "/rss.php?status=$1", 
 "^/upcoming/([^/]+)/category/([^/]+)/?$" "^/rss/category/([a-zA-Z0-9_-]+)/?$" => "/upcoming.php?part=$1&category=$2", "/rss.php?category=$1", 
 "^/upcoming/page/([0-9]+)/?$" "^/rss/category/upcoming/([a-zA-Z0-9_-]+)/?$" => "/upcoming.php?page=$1", "/rss.php?status=queued&category=$1", 
 #"^/upcoming/([^/]+)/page/(\d+)/?$" "^/rss/category/published/([a-zA-Z0-9_-]+)/?$" => "/upcoming.php?part=$1&page=$2", "/rss.php?status=queued&category=$1", 
 "^/upcoming/([^/]+)/category/([^/]+)/page/(\d+)/?$" "^/rss/search/([a-zA-Z0-9-]+)/?$" => "/upcoming.php?part=$1&category=$2&page=$3", "/rss.php?search=$1", 
 "^/user/?$" "^/rss/user/([a-zA-Z0-9-]+)/?$" => "/user.php", "/rss.php?user=$1", 
 "^/user/search/([^/]+)/?$" "^/rss/user/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$" => "/user.php?view=search&keyword=$1", "/userrss.php?user=$1&status=$2", 
 "^/user/([a-zA-Z0-9-]+)/?$" "^/rssfeeds/?$" => "/user.php?view=$1", 
 "^/user/([a-zA-Z0-9+]+)/([a-zA-Z0-9+]+)/?$" "/rssfeeds.php", 

 # trackback 

 "^/profile/?$" => "/user.php?view=$1&login=$2", "/profile.php", 
 "^/user/([a-zA-Z-]+)/link/([0-9+]+)/?$" "^/tagcloud/?$" => "/user_add_remove_links.php?action=$1&link=$2", "/cloud.php", 
 "^/admin/?$" "^/tagcloud/range/([0-9]+)/?$" => "/admin/admin_index.php", "/cloud.php?range=$1", 
 "^/admin_comments/page/([^/]+)/?$" "^/tag/(.+)/(.+)/?$" => "/admin/admin_comments.php?page=$1", "/search.php?search=$1&tag=true&from=$2", 
 "^/admin_links/page/([^/]+)/?$" "^/tag/(.+)/?$" => "/admin/admin_links.php?page=$1", "/search.php?search=$1&tag=true", 
 "^/admin_users/page/([^/]+)/?$" "^/live/?$" => "/admin/admin_users.php?page=$1", "/live.php", 
 "^/story/([0-9]+)/modify/([a-z]+)/?$" "^/out/([^/]+)/?$" => "/admin/linkadmin.php?id=$1&action=$2", "/out.php?title=$1", 
 "^/view/([^/]+)/?$" "^/settemplate/?$" => "/admin/admin_users.php?mode=view&user=$1", 

 "^/groups/?$" => "/groups.php", "/settemplate.php", 
 "^/groups/submit/?$" "^/comments/?$" => "/submit_groups.php", "/live_comments.php", 
 #"^/groups/([a-zA-Z0-9_-]+)/?$" "^/live_published/?$" => "/group_story.php?title=$1", "/live_published.php", 
 "^/groups/([a-zA-Z0-9_-]+)/page/([0-9]+)?$" "^/unpublished/?$" => "/group_story.php?title=$1&page=$2", "/live_unpublished.php", 
 "^/groups/([a-zA-Z0-9_-]+)/?$" "^/logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$" => "/group_story.php?title=$1&view=published", "/login.php?op=logout&return=$1/$2", 
 "^/groups/([a-zA-Z0-9_-]+)/(published|upcoming|shared|members)/?$" "^published/page/([^/]+)/?$" => "/group_story.php?title=$1&view=$2", "/index.php?page=$1", 
 "^/groups/([a-zA-Z0-9_-]+)/(published|upcoming|shared|members)/page/([0-9]+)?$" "^/published/page/([^/]+)/category/([^/]+)/?$" => "/group_story.php?title=$1&view=$2&page=$3", "/index.php?page=$1&category=$2", 
 "^/groups/([a-zA-Z0-9_-]+)/(published|upcoming|shared|members)/category/([^/]+)/?$" "^/published/page/([^/]+)/([^/]+)category/([^/]+)/?$" => "/group_story.php?title=$1&view=$2&category=$3", "/index.php?page=$1&part=$2&category=$3", 
 "^/groups/([a-zA-Z0-9_-]+)/(published|upcoming|shared|members)/category/([^/]+)/page/([0-9]+)?$" "^/upcoming/page/([0-9]+)/?$" => "/group_story.php?title=$1&view=$2&category=$3&page=$4", "/upcoming.php?page=$1", 
 "^/groups/delete/([0-9]+)/?$" "^/upcoming/page/([^/]+)/category/([^/]+)/?$" => "/deletegroup.php?id=$1", "/upcoming.php?page=$1&category=$2", 
 "^/groups/edit/([0-9]+)/?$" "^/upcoming/page/([^/]+)/upcoming/([^/]+)/?$" => "/editgroup.php?id=$1", "/upcoming.php?page=$1&part=upcoming&order=$2", 
 "^/groups/id/([0-9]+)/?$" "^/upcoming/page/([^/]+)/upcoming=([^/]+)category/([^/]+)/?$" => "/group_story.php?id=$1", "/upcoming.php?page=$1&part=upcoming&order=$2&category=$3", 
 "^/groups/join/([0-9]+)/?" "^/topusers/page/([^/]+)/?$" => "/join_group.php?id=$1&join=true", "/topusers.php?page=$1", 
 "^/groups/member/admin/id/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" "^/topusers/page/([^/]+)/sortby/([^/]+)?$" => "/groupadmin.php?id=$1&role=admin&userid=$3", "/topusers.php?page=$1&sortby=$2", 
 "^/groups/member/normal/id/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" "^/admin/?$" => "/groupadmin.php?id=$1&role=normal&userid=$3", "/admin/admin_index.php", 
 "^/groups/member/moderator/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" "^/admin_links/page/([^/]+)/?$" => "/groupadmin.php?id=$1&role=$2&userid=$3", "/admin/admin_links.php?page=$1", 
 "^/groups/member/flagged/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" "^/admin_comments/page/([^/]+)/?$" => "/groupadmin.php?id=$1&role=flagged&userid=$3", "/admin/admin_comments.php?page=$1", 
 "^/groups/member/banned/id/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" "^/admin_users/page/([^/]+)/?$" => "/groupadmin.php?id=$1&role=banned&userid=$3", "/admin/admin_users.php?page=$1", 
 "^/groups/page/([0-9]+)/?$" "^/view/([^/]+)/?$" => "/groups.php?page=$1", "/admin/admin_users.php?mode=view&user=$1", 
 "^/groups/unjoin/([0-9]+)/([a-zA-Z0-9-]+)/?$" => "/join_group.php?id=$1&privacy=$2&join=false", 
 "^/groups/withdraw/([0-9]+)/user_id/([0-9]+)/?$" => "/join_group.php?group_id=$1&user_id=$2&activate=withdraw", 
 "^/join_group/action/(published|queued|discard)/link/(\d+)/?$" => "/join_group.php?action=$1&link=$2", 

 "^/comments/?$" => "/live_comments.php", 
 "^/comments/page/([^/]+)/?$" => "/live_comments.php?page=$1", 
 "^/live_published/?$" => "/live_published.php", 
 "^/published/page/([^/]+)/?$" => "/live_published.php?page=$1", 
 "^/unpublished/?$" => "/live_unpublished.php", 
 "^/unpublished/page/([^/]+)/?$" => "/live_unpublished.php?page=$1", 

 "^/inbox/?$" => "/module.php?module=simple_messaging&view=inbox", 
 "^/sitemapindex.xml" "^/published/page/([^/]+)/([^/]+)/?$" => "/module.php?module=xml_sitemaps_show_sitemap", 
 "^/sitemap-([a-zA-Z0-9]+).xml" => "/module.php?module=xml_sitemaps_show_sitemap&i=$1", 

 "^/about/?$" => "/page.php?page=about", 
 "^/static/([^/]+)/?$" => "/page.php?page=$1", 

 "^/category/([^/]+)/page/([^/]+)/?$" => "/index.php?category=$1&page=$2", 
 "^/page/([^/]+)/?$" => "/index.php?page=$1", 
 "^/page/([^/]+)/([^/]+)category/([^/]+)/?$" => "/index.php?page=$1&part=$2&category=$3", 
 #"^/published/page/([^/]+)/?$" => "/index.php?page=$1", 
 "^/published/page/([^/]+)/category/([^/]+)/?$" => "/index.php?page=$1&category=$2", 
 "^/published/page/([^/]+)/([^/]+)category/([^/]+)/?$" => "/index.php?page=$1&part=$2&category=$3", 
 #"^/published/page/([^/]+)/([^/]+)/?$" => "/index.php?page=$1&part=$2", 
 "^/published/page/([^/]+)/range/([^/]+)/?$" => "/?page=$1&range=$2", 
 "^/search/page/([^/]+)/([^/]+)/?$" => "/search.php?page=$1&search=$2", 
 "^/topusers/page/([^/]+)/?$" => "/topusers.php?page=$1", 
 "^/topusers/page/([^/]+)/sortby/([^/]+)?$" => "/topusers.php?page=$1&sortby=$2", 
 "^/user/page/([^/]+)/([^/]+)/([^/]+)/?$" => "/user.php?page=$1&view=$2&login=$3", 
 "^/user/([^/]+)/([^/]+)/page/(\d+)/?$" "^/statistics/page/([^/]+)/?$" => "/user.php?page=$3&view=$1&login=$2", 

 "^/(year|month|week|today|yesterday|recent)/?$" => "/index.php?part=$1", "/module.php?module=pagestatistics&page=$1", 
 "^/(year|month|week|today|yesterday|recent)/category/([^/]+)/?$" "^/sitemapindex.xml" => "/index.php?part=$1&category=$2", "/module.php?module=xml_sitemaps_show_sitemap", 
 "^/(year|month|week|today|yesterday|recent)/page/(\d+)/?$" "^/sitemap-([a-zA-Z0-9]+).xml" => "/index.php?part=$1&page=$2", "/module.php?module=xml_sitemaps_show_sitemap&i=$1", 
 "^/(year|month|week|today|yesterday|recent)/category/([^/]+)/page/(\d+)/?$" "^/page/([^/]+)/?$" => "/index.php?part=$1&category=$2&page=$3", 

 "^/([^/]+)/rss/?$" => "/storyrss.php?title=$1", "/page.php?page=$1", 
 "^/rss/?$" "^/groups/?$" => "/rss.php", "/groups.php", 
 "^/rss/([a-zA-Z0-9-]+)/?$" "^/groups/all/?$" => "/rss.php?status=$1", "/groups.php", 
 "^/rss/category/([^/]+)/?$" "^/groups/all/page/([0-9]+)/?$" => "/rss.php?category=$1", "/groups.php?page=$1", 
 "^/rss/category/upcoming/([^/]+)/?$" "^/groups/submit/?$" => "/rss.php?status=queued&category=$1", "/submit_groups.php", 
 "^/rss/category/published/([^/]+)/?$" "^/groups/edit/id/([0-9]+)/?$" => "/rss.php?status=published&category=$1", "/editgroup.php?id=$1", 
 "^/rss/category/([^/]+)/queued/?$" "^/groups/delete/id/([0-9]+)/?$" => "/rss.php?status=queued&category=$1", "/deletegroup.php?id=$1", 
 "^/rss/category/([^/]+)/published/?$" "^/groups/([a-zA-Z0-9_-]+)/?$" => "/rss.php?status=published&category=$1", "/group_story.php?title=$1", 
 "^/rss/category/([^/]+)/group/([a-zA-Z0-9_-]+)/?$" "^/groups/title/([a-zA-Z0-9_-]+)/?$" => "/rss.php?category=$1&group=$2", "/group_story.php?title=$1", 
 "^/rss/category/upcoming/([^/]+)/([a-zA-Z0-9_-]+)/?$" "^/groups/id/([0-9]+)/?$" => "/rss.php?status=queued&category=$1&group=$2", "/group_story.php?id=$1", 
 "^/rss/category/published/([^/]+)/([a-zA-Z0-9_-]+)/?$" "^/groups/join/id/([0-9]+)/privacy/([a-zA-Z0-9_-]+)/join/([a-zA-Z0-9_-]+)/?$" => "/rss.php?status=published&category=$1&group=$2", "/join_group.php?id=$1&privavy=$2&join=true", 
 "^/rss/search/([a-zA-Z0-9-]+)/?$" "^/groups/unjoin/id/([0-9]+)/privacy/([a-zA-Z0-9_-]+)/join/([a-zA-Z0-9_-]+)/?$" => "/rss.php?search=$1", "/join_group.php?id=$1&privavy=$2&join=false", 
 "^/rss/user/([a-zA-Z0-9-]+)/?$" "^/groups/withdraw/id/([0-9]+)/user_id/([0-9]+)/activate/([a-zA-Z0-9_-]+)/?$" => "/userrss.php?user=$1", "/join_group.php?group_id=$1&user_id=$2&activate=withdraw", 
 "^/rss/user/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$" "^/groups/member/admin/id/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/userrss.php?user=$1&status=$2", "/groupadmin.php?id=$1&role=admin&userid=$3", 
 "^/rssfeeds/?$" "^/groups/member/normal/id/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/rssfeeds.php", 

 "^/upcoming/([^/]+)/?$" => "/upcoming.php?category=$1", "/groupadmin.php?id=$1&role=normal&userid=$3", 
 "^/upcoming/([^/]+)/page/(\d+)/?$" "^/groups/member/moderator/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/upcoming.php?category=$1&page=$2", "/groupadmin.php?id=$1&role=$2&userid=$3", 
 "^/upcoming/(year|month|week|today|yesterday|recent)/([^/]+)/?$" "^/groups/member/flagged/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/upcoming.php?part=$1&category=$2", "/groupadmin.php?id=$1&role=flagged&userid=$3", 
 "^/upcoming/(year|month|week|today|yesterday|recent)/([^/]+)/page/(\d+)/?$" "^/groups/member/banned/id/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/upcoming.php?part=$1&category=$2&page=$3", "/groupadmin.php?id=$1&role=banned&userid=$3", 
 "^/published/page/([^/]+)/([^/]+)/?$" #"^/groups/([a-zA-Z0-9_-]+)/?$" => "/index.php?page=$1&category=$2", "/group_story.php?title=$1&view=published", 
 "^/published/page/([^/]+)/([^/]+)/([^/]+)/?$" "^/groups/([a-zA-Z0-9_-]+)/published/?$" => "/index.php?page=$1&part=$2&category=$3", "/group_story.php?title=$1&view=published", 
 "^/(year|month|week|today|yesterday|recent)/([^/]+)/?$" "^/groups/([a-zA-Z0-9_-]+)/published/page/([0-9]+)?$" => "/index.php?part=$1&category=$2", "/group_story.php?title=$1&view=published&page=$2", 
 "^/(year|month|week|today|yesterday|recent)/([^/]+)/page/(\d+)/?$" "^/groups/([a-zA-Z0-9_-]+)/upcoming/?$" => "/index.php?part=$1&category=$2&page=$3", 

 "^/user/view/([a-zA-Z0-9-]+)/?$" => "/user.php?view=$1", "/group_story.php?title=$1&view=upcoming", 
 "^/user/view/([a-zA-Z0-9+]+)/([a-zA-Z0-9+]+)/?$" "^/groups/([a-zA-Z0-9_-]+)/upcoming/page/([0-9]+)?$" => "/user.php?view=$1&login=$2", "/group_story.php?title=$1&view=upcoming&page=$2", 
 "^/user/view/([a-zA-Z0-9+]+)/login/([a-zA-Z0-9+]+)/?$" "^/groups/([a-zA-Z0-9_-]+)/shared/?$" => "/user.php?view=$1&login=$2", "/group_story.php?title=$1&view=shared", 
 "^/published/([a-zA-Z0-9-]+)/?$" "^/groups/([a-zA-Z0-9_-]+)/shared/page/([0-9]+)?$" => "/index.php?part=$1", "/group_story.php?title=$1&view=shared&page=$2", 
 "^/published/([a-zA-Z0-9-]+)/category/([a-zA-Z0-9_-]+)/?$" "^/groups/([a-zA-Z0-9_-]+)/members/?$" => "/index.php?part=$1&category=$2", "/group_story.php?title=$1&view=members", 
 "^/about/([a-zA-Z0-9-]+)/?$" "^/groups/([a-zA-Z0-9_-]+)/members/page/([0-9]+)?$" => "/page.php?page=about", 
 "^/upcoming/page/([^/]+)/category/([^/]+)/?$" => "/upcoming.php?page=$1&category=$2", 
 "^/upcoming/page/([^/]+)/upcoming=([^/]+)category/([^/]+)/?$" => "/upcoming.php?page=$1&part=upcoming&order=$2&category=$3", 
 "^/statistics/page/([^/]+)/?$" => "/module.php?module=pagestatistics&page=$1", 

 #"^/(.*)" => "/$1.php", 
 "^/.*\.php" => "$0", 
 "^/([^/]+)/?$" => "/index.php?category=$1", 
 "^/([^/]+)/page/([^/]+)/?$" => "/index.php?category=$1&page=$2", 
 "^/([^/]+)/([^/]+)/?$" => "/story.php?title=$2" "/group_story.php?title=$1&view=members&page=$2" 

 ) 
 </pre> 

 If you find a bug let me know ( chris [at] cretaforce.gr )