Search Results for 'code'
-
Search Results
-
Topic: Future of bbPress
So I totally hacked up my htaccess file and now when I visit a nonexistant url it goes to the apache 404 page instead of the bbpress 404.. how do I need to change the code below to fix that?
# BEGIN bbPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /community
Options +FollowSymlinks +MultiViews
RewriteRule ^forums$ forums/ [R=301]
RewriteRule ^forums/$ /community/index.php?view=forums [P,L,QSA]
RewriteRule ^leaderboards$ leaderboards/ [R=301]
RewriteRule ^leaderboards/$ /community/index.php?view=leaderboards [P,L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ profile.php?id=$1 [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ rss.php [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ rss.php?profile=$1 [L,QSA]
RewriteRule ^page/([0-9]+)/?$ ?page=$1 [L,QSA]
RewriteRule ^forums/([^/]+)/([^/]+)/page/([0-9]+)/?$ topic.php?id=$2&page=$3 [L,QSA]
RewriteRule ^forums/([^/]+)/([^/]+)/?$ topic.php?id=$2 [L,QSA]
RewriteRule ^forums/([^/]+)/page/([0-9]+)/?$ forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forums/([^/]+)/?$ forum.php?id=$1 [L,QSA]
</IfModule>
# END bbPress
BUT! Im happy to give “donations” if the developer is ok. How much do you charge?
hope you understand.
In CSS I use /*………*/ for a few lines of code or ……..// for just a line so that code is skipped or avoided. Will this work in a .php file also? I would like to skip code to test it out without deleting the original code. Just want to mask the original code so I can go back to it if I make a mistake.
Thank you.