Brian
Member
Сообщений: 182
Зарегистрирован: 08-07-2008
Рейтинг: 7
|
RE: Какие версии Wordpress MU и Buddypress совместимы?
Файл htaccess вот такой должен быть:
Код:
RewriteEngine On
RewriteBase /
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
|
|
23-10-2010 01:04 |
|
san40
Junior Member
Сообщений: 21
Зарегистрирован: 21-10-2010
Рейтинг: 0
|
RE: Какие версии Wordpress MU и Buddypress совместимы?
(23-10-2010 01:05)san40 писал(а): <?php
$_rules = <<<EOF
# BEGIN bbPress
Options -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase %PATH%
RewriteRule ^page/([0-9]+)/?$ %PATH%index.php?page=$1 [L,QSA]
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ %PATH%forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ %PATH%forum.php?id=$1 [L,QSA]
RewriteRule ^forum/?$ %PATH% [R=302,L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ %PATH%topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ %PATH%topic.php?id=$1 [L,QSA]
RewriteRule ^topic/?$ %PATH% [R=302,L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ %PATH%tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ %PATH%tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ %PATH%tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ %PATH%profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ %PATH%profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ %PATH%profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ %PATH%profile.php?id=$1 [L,QSA]
RewriteRule ^profile/?$ %PATH%profile.php [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ %PATH%view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ %PATH%view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ %PATH%rss.php [L,QSA]
RewriteRule ^rss/topics/?$ %PATH%rss.php?topics=1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ %PATH%rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/topics/?$ %PATH%rss.php?forum=$1&topics=1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ %PATH%rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ %PATH%rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/topics/?$ %PATH%rss.php?tag=$1&topics=1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ %PATH%rss.php?profile=$1 [L,QSA]
RewriteRule ^rss/view/([^/]+)/?$ %PATH%rss.php?view=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ %PATH%index.php [L]
</IfModule>
# END bbPress
EOF;
$_rules = str_replace( '%PATH%', bb_get_option( 'path' ), $_rules );
вот такой
|
|
23-10-2010 01:06 |
|