bbPress AND Lighttpd URL rewrite rules
-
Hello, I have installed bbPress at one of my websites (in a subdirectory called “forums” – i.e. bbPress is installed at mydomain.com/forums/).
I’m trying to set up Lighttpd URL rewrite rules now in order to achieve SEO friendly permalinks.
I have tried to google a little bit but the only thing I have found is this:
"^/forum/([^/]+)/page/([0-9]+)/?$" => "/forum.php?id=$1&page=$2",
"^/forum/([^/]+)/?$" => "/forum.php?id=$1",
"^/topic/([^/]+)/page/([0-9]+)/?$" => "/topic.php?id=$1&page=$2",
"^/topic/([^/]+)/?$" => "/topic.php?id=$1",
"^/tags/([^/]+)/page/([0-9]+)/?$" => "/tags.php?tag=$1&page=$2",
"^/tags/([^/]+)/?$" => "/tags.php?tag=$1",
"^/tags/?$" => "/tags.php",
"^/profile/([^/]+)/page/([0-9]+)/?$" => "/profile.php?id=$1&page=$2",
"^/profile/([^/]+)/([^/]+)/?$" => "/profile.php?id=$1&tab=$2",
"^/profile/([^/]+)/([^/]+)/page/([0-9]+)/?$" => "/profile.php?id=$1&tab=$2&page=$3",
"^/profile/([^/]+)/([^/]+)/favorites/?$" => "/profile.php?id=$1&tab=favorites",
"^/profile/([^/]+)/?$" => "/profile.php?id=$1",
"^/view/([^/]+)/page/([0-9]+)/?$" => "/view.php?view=$1&page=$2",
"^/view/([^/]+)/?$" => "/view.php?view=$1",
"^/rss/?$" => "/rss.php",
"^/rss/forum/([^/]+)/?$" => "/rss.php?forum=$1",
"^/rss/topic/([^/]+)/?$" => "/rss.php?topic=$1",
"^/rss/tags/([^/]+)/?$" => "/rss.php?tag=$1",
"^/rss/profile/([^/]+)/?$" => "/rss.php?profile=$1"Could anybody tell me how to edit it taking into consideration the subfolder where the bbPress is installed?
My current Lighttpd rewrite rules in config file are bellow:
url.rewrite-once = (
"^/(wp-.+).*/?" => "$0",
"^/images/.*/?" => "$0",
"^/forums/.*/?" => "$0",
"^/temp/.*/?" => "$0",
"^/(sitemap.xml)" => "$0",
"^/(xmlrpc.php)" => "$0",
"^/keyword/([A-Za-z_0-9-]+)/?$" => "/index.php?keyword=$1",
"^/.*?(?.*)?$" => "/index.php$1"
)
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.