_ck_!!can Provide .htaccess url Static 文件吗?
bbPress ShowcasebbPress Showcase
bbPress Showcase » Plugins by _ck_
-
Posted 3 years ago #
-
I do not understand the question.
But I will try to guess that you want "static" URLs ?http://bbpress.org/documentation/faq/
Put these into your .htacess and turn on "pretty permalinks"
http://www.tipsr.cn/bbpress/bb-admin/rewrite-rules.phpPosted 3 years ago # -
i've done the operating with your advice,but some problems appears as following:
Unable to download the document rewrite-rules.php
Posted 3 years ago # -
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, webmaster@bbs.xiaake.cn and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Posted 3 years ago # -
show me your .htaccess file
Posted 3 years ago # -
RewriteEngine On
RewriteBase <?php bb_option( 'path' ); ?>RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ <?php bb_option( 'path' ); ?>forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ <?php bb_option( 'path' ); ?>forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ <?php bb_option( 'path' ); ?>topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ <?php bb_option( 'path' ); ?>topic.php?id=$1 [L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ <?php bb_option( 'path' ); ?>tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ <?php bb_option( 'path' ); ?>tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ <?php bb_option( 'path' ); ?>tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ <?php bb_option( 'path' ); ?>profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ <?php bb_option( 'path' ); ?>profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ <?php bb_option( 'path' ); ?>profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ <?php bb_option( 'path' ); ?>profile.php?id=$1 [L,QSA]
RewriteRule ^profile/?$ <?php bb_option( 'path' ); ?>profile.php [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ <?php bb_option( 'path' ); ?>view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ <?php bb_option( 'path' ); ?>view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ <?php bb_option( 'path' ); ?>rss.php [L,QSA]
RewriteRule ^rss/topics/?$ <?php bb_option( 'path' ); ?>rss.php?topics=1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ <?php bb_option( 'path' ); ?>rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/topics/?$ <?php bb_option( 'path' ); ?>rss.php?forum=$1&topics=1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ <?php bb_option( 'path' ); ?>rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ <?php bb_option( 'path' ); ?>rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ <?php bb_option( 'path' ); ?>rss.php?profile=$1 [L,QSA]
RewriteRule ^rss/view/([^/]+)/?$ <?php bb_option( 'path' ); ?>rss.php?view=$1 [L,QSA]Posted 3 years ago # -
Demo Address:http://bbs.xiaake.cn
_ck_ Do you have ( Google Talk)Online Contact Way?
Posted 3 years ago # -
Your .htaccess file is wrong.
You need to access it from the web, not ftp/command line.Login first.
Then go to
http://bbs.xiaake.cn/bb-admin/rewrite-rules.php
copy THAT into .htaccessI don't do live chat, I do not have the spare time, sorry.
Posted 3 years ago # -
Has been resolved, thank you
Posted 3 years ago # -
Hi,
I followed your instructions and got the following .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forums/
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forums/forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ /forums/forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /forums/topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ /forums/topic.php?id=$1 [L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /forums/tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ /forums/tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /forums/tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /forums/profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ /forums/profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /forums/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ /forums/profile.php?id=$1 [L,QSA]
RewriteRule ^profile/?$ /forums/profile.php [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /forums/view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ /forums/view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ /forums/rss.php [L,QSA]
RewriteRule ^rss/topics/?$ /forums/rss.php?topics=1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ /forums/rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/topics/?$ /forums/rss.php?forum=$1&topics=1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ /forums/rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ /forums/rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ /forums/rss.php?profile=$1 [L,QSA]
RewriteRule ^rss/view/([^/]+)/?$ /forums/rss.php?view=$1 [L,QSA]
</IfModule>
I tried it on my website : http://ceclair.fr
(the bbpress forums are here : http://ceclair.fr/forums)
But unfortunately I always get 404 errors with the new permalinks.
And I did changed the option in the admin part of bbPress.I tried this code with my local installation which is a total copy of the online one (except that it is on localhost). And it works perfectly. But on my hosted version (by the way, my host is 1&1), I get the errors.
I also tried to add the following line, because it makes pretty permalinks work on another install with joomla(it's a 1&1 known issue) :
AddType x-mapp-php5 .php
But this line doesn't resolve the 404 error.Please I know you are very busy but I badly need your help on this issue.
Blogmaster of C'éclair!Posted 2 years ago #
RSS feed for this topic