Actions
Pligg » History » Revision 1
Revision 1/5
| Next »
CyberCr33p, 2009-02-04 17:23
Here are the rewrites for Pligg CMS:
url.rewrite-once= ( # You have to add each category on these 2 lines "^/(all|Technology|Apple|Windows|Unix-Linux-BSD)/([^/]+)/?$" => "/story.php?title=$2", "^/(all|Technology|apple|Windows|Unix-Linux-BSD)/?$" => "/?category=$1", "^/story/([0-9]+)/?$" => "/story.php?id=$1", "^/story/title/([^/]+)/?$" => "/story.php?title=$1", "^/story/([0-9]+)/editcomment/([0-9]+)/?$" => "/edit.php?id=$1&commentid=$2", "^/story/([0-9]+)/edit/?$" => "/editlink.php?id=$1", "^/story/([0-9]+)/modify/([a-z]+)/?$" => "/linkadmin.php?id=$1&action=$2", "^/recommend/([a-zA-Z0-9-]+)/?$" => "/recommend.php?id=$1", "^/category/([^/]+)/?$" => "/index.php?category=$1", "^/upcoming/category/([^/]+)/?$" => "/upcoming.php?category=$1", "^/upcoming/([a-zA-Z0-9]+)/?$" => "/upcoming.php?part=upcoming&order=$1", "^/inbox/?$" => "/user.php?view=inbox", "^/user/?$" => "/user.php", "^/user/view/([a-zA-Z0-9-]+)/?$" => "/user.php?view=$1", "^/user/view/([a-zA-Z0-9+]+)/([a-zA-Z0-9+]+)/?$" => "/user.php?view=$1&login=$2", "^/user/view/([a-zA-Z0-9+]+)/login/([a-zA-Z0-9+]+)/?$" => "/user.php?view=$1&login=$2", "^/user/([a-zA-Z-]+)/link/([0-9+]+)/?$" => "/user_add_remove_links.php?action=$1&link=$2", "^/published/?$" => "/index.php", "^/published/([a-zA-Z0-9-]+)/?$" => "/index.php?part=$1", "^/published/([a-zA-Z0-9-]+)/category/([a-zA-Z0-9_-]+)/?$" => "/index.php?part=$1&category=$2", "^/upcoming/([a-zA-Z0-9-]+)/category/([a-zA-Z0-9_-]+)/?$" => "/upcoming.php?part=upcoming&order=$1&category=$2", "^/search/(.+)/?$" => "/search.php?search=$1", "^/searchurl/(.+)/?$" => "/search.php?url=$1", "^/login/?$" => "/login.php", "^/login/([a-zA-Z0-9-]+)/?$" => "/login.php?return=$1", "^/login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$" => "/login.php?return=$1/$2", "^/register/?$" => "/register.php", "^/topusers/?$" => "/topusers.php", "^/about/([a-zA-Z0-9-]+)/?$" => "/faq-$1.php", "^/upcoming/?$" => "/upcoming.php", "^/submit/?$" => "/submit.php", "^/rss/?$" => "/rss.php", "^/rss/([a-zA-Z0-9-]+)/?$" => "/rss.php?status=$1", "^/rss/category/([a-zA-Z0-9_-]+)/?$" => "/rss.php?category=$1", "^/rss/category/upcoming/([a-zA-Z0-9_-]+)/?$" => "/rss.php?status=queued&category=$1", "^/rss/category/published/([a-zA-Z0-9_-]+)/?$" => "/rss.php?status=queued&category=$1", "^/rss/search/([a-zA-Z0-9-]+)/?$" => "/rss.php?search=$1", "^/rss/user/([a-zA-Z0-9-]+)/?$" => "/rss.php?user=$1", "^/rss/user/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$" => "/userrss.php?user=$1&status=$2", "^/rssfeeds/?$" => "/rssfeeds.php", # trackback "^/profile/?$" => "/profile.php", "^/tagcloud/?$" => "/cloud.php", "^/tagcloud/range/([0-9]+)/?$" => "/cloud.php?range=$1", "^/tag/(.+)/(.+)/?$" => "/search.php?search=$1&tag=true&from=$2", "^/tag/(.+)/?$" => "/search.php?search=$1&tag=true", "^/live/?$" => "/live.php", "^/out/([^/]+)/?$" => "/out.php?title=$1", "^/settemplate/?$" => "/settemplate.php", "^/comments/?$" => "/live_comments.php", "^/live_published/?$" => "/live_published.php", "^/unpublished/?$" => "/live_unpublished.php", "^/logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$" => "/login.php?op=logout&return=$1/$2", "^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", "^/upcoming/page/([0-9]+)/?$" => "/upcoming.php?page=$1", "^/upcoming/page/([^/]+)/category/([^/]+)/?$" => "/upcoming.php?page=$1&category=$2", "^/upcoming/page/([^/]+)/upcoming/([^/]+)/?$" => "/upcoming.php?page=$1&part=upcoming&order=$2", "^/upcoming/page/([^/]+)/upcoming=([^/]+)category/([^/]+)/?$" => "/upcoming.php?page=$1&part=upcoming&order=$2&category=$3", "^/topusers/page/([^/]+)/?$" => "/topusers.php?page=$1", "^/topusers/page/([^/]+)/sortby/([^/]+)?$" => "/topusers.php?page=$1&sortby=$2", "^/admin/?$" => "/admin/admin_index.php", "^/admin_links/page/([^/]+)/?$" => "/admin/admin_links.php?page=$1", "^/admin_comments/page/([^/]+)/?$" => "/admin/admin_comments.php?page=$1", "^/admin_users/page/([^/]+)/?$" => "/admin/admin_users.php?page=$1", "^/view/([^/]+)/?$" => "/admin/admin_users.php?mode=view&user=$1", "^/comments/page/([^/]+)/?$" => "/live_comments.php?page=$1", "^/published/page/([^/]+)/?$" => "/live_published.php?page=$1", "^/unpublished/page/([^/]+)/?$" => "/live_unpublished.php?page=$1", "^/published/page/([^/]+)/([^/]+)/?$" => "/index.php?page=$1&part=$2", "^/published/page/([^/]+)/range/([^/]+)/?$" => "/?page=$1&range=$2", "^/user/page/([^/]+)/([^/]+)/([^/]+)/?$" => "/user.php?page=$1&view=$2&login=$3", "^/statistics/page/([^/]+)/?$" => "/module.php?module=pagestatistics&page=$1", "^/sitemapindex.xml" => "/module.php?module=xml_sitemaps_show_sitemap", "^/sitemap-([a-zA-Z0-9]+).xml" => "/module.php?module=xml_sitemaps_show_sitemap&i=$1", "^/page/([^/]+)/?$" => "/page.php?page=$1", "^/groups/?$" => "/groups.php", "^/groups/all/?$" => "/groups.php", "^/groups/all/page/([0-9]+)/?$" => "/groups.php?page=$1", "^/groups/submit/?$" => "/submit_groups.php", "^/groups/edit/id/([0-9]+)/?$" => "/editgroup.php?id=$1", "^/groups/delete/id/([0-9]+)/?$" => "/deletegroup.php?id=$1", "^/groups/([a-zA-Z0-9_-]+)/?$" => "/group_story.php?title=$1", "^/groups/title/([a-zA-Z0-9_-]+)/?$" => "/group_story.php?title=$1", "^/groups/id/([0-9]+)/?$" => "/group_story.php?id=$1", "^/groups/join/id/([0-9]+)/privacy/([a-zA-Z0-9_-]+)/join/([a-zA-Z0-9_-]+)/?$" => "/join_group.php?id=$1&privavy=$2&join=true", "^/groups/unjoin/id/([0-9]+)/privacy/([a-zA-Z0-9_-]+)/join/([a-zA-Z0-9_-]+)/?$" => "/join_group.php?id=$1&privavy=$2&join=false", "^/groups/withdraw/id/([0-9]+)/user_id/([0-9]+)/activate/([a-zA-Z0-9_-]+)/?$" => "/join_group.php?group_id=$1&user_id=$2&activate=withdraw", "^/groups/member/admin/id/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/groupadmin.php?id=$1&role=admin&userid=$3", "^/groups/member/normal/id/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/groupadmin.php?id=$1&role=normal&userid=$3", "^/groups/member/moderator/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/groupadmin.php?id=$1&role=$2&userid=$3", "^/groups/member/flagged/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/groupadmin.php?id=$1&role=flagged&userid=$3", "^/groups/member/banned/id/([0-9]+)/role/([a-zA-Z0-9_-]+)/userid/([0-9]+)/?$" => "/groupadmin.php?id=$1&role=banned&userid=$3", #"^/groups/([a-zA-Z0-9_-]+)/?$" => "/group_story.php?title=$1&view=published", "^/groups/([a-zA-Z0-9_-]+)/published/?$" => "/group_story.php?title=$1&view=published", "^/groups/([a-zA-Z0-9_-]+)/published/page/([0-9]+)?$" => "/group_story.php?title=$1&view=published&page=$2", "^/groups/([a-zA-Z0-9_-]+)/upcoming/?$" => "/group_story.php?title=$1&view=upcoming", "^/groups/([a-zA-Z0-9_-]+)/upcoming/page/([0-9]+)?$" => "/group_story.php?title=$1&view=upcoming&page=$2", "^/groups/([a-zA-Z0-9_-]+)/shared/?$" => "/group_story.php?title=$1&view=shared", "^/groups/([a-zA-Z0-9_-]+)/shared/page/([0-9]+)?$" => "/group_story.php?title=$1&view=shared&page=$2", "^/groups/([a-zA-Z0-9_-]+)/members/?$" => "/group_story.php?title=$1&view=members", "^/groups/([a-zA-Z0-9_-]+)/members/page/([0-9]+)?$" => "/group_story.php?title=$1&view=members&page=$2" )
If you find a bug let me know ( chris [at] cretaforce.gr )
Updated by CyberCr33p almost 16 years ago · 1 revisions