<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>bbPress Support Forums &#187; Topic: Nginx Rewrite Rules for Pretty Permalinks</title>
		<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks</link>
		<description>bbPress Support Forums &#187; Topic: Nginx Rewrite Rules for Pretty Permalinks</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 10:04:12 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/nginx-rewrite-rules-for-pretty-permalinks" rel="self" type="application/rss+xml" />

		<item>
			<title>Ashfame on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-80799</link>
			<pubDate>Sat, 08 Jan 2011 04:21:56 +0000</pubDate>
			<dc:creator>Ashfame</dc:creator>
			<guid isPermaLink="false">80799@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Thanks Scribu! Handy thing.
</p>]]></description>
					</item>
		<item>
			<title>scribu on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-80739</link>
			<pubDate>Fri, 07 Jan 2011 21:43:07 +0000</pubDate>
			<dc:creator>scribu</dc:creator>
			<guid isPermaLink="false">80739@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I have WP running at <code>/</code> and bbPress at <code>/forum/</code>.</p>
<p>This is the configuration I'm using:</p>
<p><a href="http://gist.github.com/770180" rel="nofollow">http://gist.github.com/770180</a></p>
<p>Note that there was an error in one of the rules Sam posted:</p>
<p>rewrite ^/topic/([^/]+)/?$ /bbpress/topic.php?id=$1 last;</p>
<p>should have been</p>
<p>rewrite ^/topic/([^/]+)/?$ /topic.php?id=$1 last;
</p>]]></description>
					</item>
		<item>
			<title>Ashfame on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-38745</link>
			<pubDate>Sun, 12 Jul 2009 17:20:43 +0000</pubDate>
			<dc:creator>Ashfame</dc:creator>
			<guid isPermaLink="false">38745@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>@Jason<br />
The issue is that I don't know where to add those. Read <a href="http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-36971">this post</a>.<br />
As soon as I add the include line like<br />
<pre><code>locations /forums/
{
include ...
}</code></pre>
<p>even my WP stops working.
</p>]]></description>
					</item>
		<item>
			<title>Jason Giedymin on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-38710</link>
			<pubDate>Sun, 12 Jul 2009 14:30:31 +0000</pubDate>
			<dc:creator>Jason Giedymin</dc:creator>
			<guid isPermaLink="false">38710@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>These rewrites posted are correct.  This is pretty much what we have.</p>
<p>Our environment is very different and we have a few in-house modules to handle 'missing files' in place of the '!-e'.  </p>
<p>As far as the rewrites go they're good, and obviously you must enable pretty perms for bbpress.</p>
<p>If your having problems ashfame, just cut/past the rewrites outside the file check conditional (if).
</p>]]></description>
					</item>
		<item>
			<title>Ashfame on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-38570</link>
			<pubDate>Fri, 10 Jul 2009 09:27:27 +0000</pubDate>
			<dc:creator>Ashfame</dc:creator>
			<guid isPermaLink="false">38570@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Nope. Its a pending issue of mine. May be we can get a response now.<br />
BUMP!
</p>]]></description>
					</item>
		<item>
			<title>punktoronto on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-38475</link>
			<pubDate>Thu, 09 Jul 2009 02:46:58 +0000</pubDate>
			<dc:creator>punktoronto</dc:creator>
			<guid isPermaLink="false">38475@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Has this been solved? I've been trying to figure it out as well. Everything I've found is for wordpress-mu and I'm not sure what needs to be changed to use it with regular wordpress. </p>
<p>I found this <a href="http://insecure.no/2009/01/wordpress-and-bbpress-nice-url-rewrite-for-nginx/" rel="nofollow">http://insecure.no/2009/01/wordpress-and-bbpress-nice-url-rewrite-for-nginx/</a> it sort of works. pretty permalinks work but any attached files such as the css sheet or jquery.js returns a 404 not found error. Any Ideas?</p>
<p><code><br />
# SEO friendly URLs for bbPress<br />
#<br />
location /forums/ {<br />
root /path/to/YOURDIRECTORY/public_html/forums;<br />
index index.php;<br />
if (!-e $request_filename) {<br />
rewrite ^/forums/topic/(.*)$ /forums/topic.php?q=$1 last;<br />
rewrite ^/forums/forum/(.*)$ /forums/forum.php?q=$1 last;<br />
rewrite ^/forums/profile/(.*)$ /forums/profile.php?q=$1 last;<br />
rewrite ^/forums/view/(.*)$ /forums/view.php?q=$1 last;<br />
rewrite ^/forums/tags/(.*)$ /forums/tags.php?q=$1 last;<br />
rewrite ^/forums/rss/(.*)$ /forums/rss.php?q=$1 last;<br />
rewrite ^/forums/bb-admin/ /forums/bb-admin/index.php last;<br />
rewrite ^/forums/ /forums/index.php last;<br />
break;<br />
}<br />
}<br />
</code>
</p>]]></description>
					</item>
		<item>
			<title>Ashfame on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-36971</link>
			<pubDate>Mon, 15 Jun 2009 20:10:29 +0000</pubDate>
			<dc:creator>Ashfame</dc:creator>
			<guid isPermaLink="false">36971@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I am sure that I am doing something wrong here.<br />
This is the vhost for the domain :<br />
<pre><code>server {

            listen   80;
            server_name  mydomain.com;
            rewrite ^/(.*) <a href="http://www.mydomain.com/$1" rel="nofollow">http://www.mydomain.com/$1</a> permanent;

           }

server {

            listen   80;
            server_name <a href="http://www.mydomain.com" rel="nofollow">http://www.mydomain.com</a>;

            access_log /home/public_html/mydomain.com/log/access.log;
            error_log /home/public_html/mydomain.com/log/error.log;

            location / {

                        root   /home/public_html/mydomain.com/public/;
                        index  index.php index.html;

                        # Basic version of WordPress parameters, supporting nice permalinks.
                        # include /usr/local/nginx/conf/wordpress_params.regular;
                        # Advanced version of WordPress parameters supporting nice permalinks and WP Super Cache plugin
                        include /usr/local/nginx/conf/wordpress_params.super_cache;
                        }

            # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
            #
            location ~ \.php$ {
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            include /usr/local/nginx/conf/fastcgi_params;
            fastcgi_param SCRIPT_FILENAME /home/public_html/mydomain.com/public/$fastcgi_script_name;
            }
      }</code></pre>
<p>I have added the rewrite rules for bbPress in <code>/usr/local/nginx/conf/bbpress_params.regular</code><br />
Now where should I add <code>include /usr/local/nginx/conf/bbpress_params.regular;</code> in my vhost file?
</p>]]></description>
					</item>
		<item>
			<title>Ashfame on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-36943</link>
			<pubDate>Mon, 15 Jun 2009 13:58:34 +0000</pubDate>
			<dc:creator>Ashfame</dc:creator>
			<guid isPermaLink="false">36943@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Thanks Sam! I will get back once I have tried them.
</p>]]></description>
					</item>
		<item>
			<title>Sam Bauers on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-36938</link>
			<pubDate>Mon, 15 Jun 2009 13:37:04 +0000</pubDate>
			<dc:creator>Sam Bauers</dc:creator>
			<guid isPermaLink="false">36938@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>This will probably work:</p>
<pre><code>rewrite ^/page/([0-9]+)/?$ /index.php?page=$1 last;
rewrite ^/forum/([^/]+)/page/([0-9]+)/?$ /forum.php?id=$1&#38;page=$2 last;
rewrite ^/forum/([^/]+)/?$ /forum.php?id=$1 last;
rewrite ^/forum/?$ / permanent;
rewrite ^/topic/([^/]+)/page/([0-9]+)/?$ /topic.php?id=$1&#38;page=$2 last;
rewrite ^/topic/([^/]+)/?$ /bbpress/topic.php?id=$1 last;
rewrite ^/topic/?$ / permanent;
rewrite ^/tags/([^/]+)/page/([0-9]+)/?$ /tags.php?tag=$1&#38;page=$2 last;
rewrite ^/tags/([^/]+)/?$ /tags.php?tag=$1 last;
rewrite ^/tags/?$ /tags.php last;
rewrite ^/profile/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&#38;page=$2 last;
rewrite ^/profile/([^/]+)/([^/]+)/?$ /profile.php?id=$1&#38;tab=$2 last;
rewrite ^/profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&#38;tab=$2&#38;page=$3 last;
rewrite ^/profile/([^/]+)/?$ /profile.php?id=$1 last;
rewrite ^/profile/?$ /profile.php last;
rewrite ^/view/([^/]+)/page/([0-9]+)/?$ /view.php?view=$1&#38;page=$2 last;
rewrite ^/view/([^/]+)/?$ /view.php?view=$1 last;
rewrite ^/rss/?$ /rss.php last;
rewrite ^/rss/topics/?$ /rss.php?topics=1 last;
rewrite ^/rss/forum/([^/]+)/?$ /rss.php?forum=$1 last;
rewrite ^/rss/forum/([^/]+)/topics/?$ /rss.php?forum=$1&#38;topics=1 last;
rewrite ^/rss/topic/([^/]+)/?$ /rss.php?topic=$1 last;
rewrite ^/rss/tags/([^/]+)/?$ /rss.php?tag=$1 last;
rewrite ^/rss/tags/([^/]+)/topics/?$ /rss.php?tag=$1&#38;topics=1 last;
rewrite ^/rss/profile/([^/]+)/?$ /rss.php?profile=$1 last;
rewrite ^/rss/view/([^/]+)/?$ /rss.php?view=$1 last;

if ( !-e $request_filename ) {
	rewrite ^ /index.php last;
}</code></pre>]]></description>
					</item>
		<item>
			<title>Ashfame on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-36930</link>
			<pubDate>Mon, 15 Jun 2009 08:55:19 +0000</pubDate>
			<dc:creator>Ashfame</dc:creator>
			<guid isPermaLink="false">36930@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>There must be someone who is using bbPress on Nginx or maybe Sam can share!
</p>]]></description>
					</item>
		<item>
			<title>Ashfame on "Nginx Rewrite Rules for Pretty Permalinks"</title>
			<link>http://bbpress.org/forums/topic/nginx-rewrite-rules-for-pretty-permalinks#post-36735</link>
			<pubDate>Thu, 11 Jun 2009 20:33:55 +0000</pubDate>
			<dc:creator>Ashfame</dc:creator>
			<guid isPermaLink="false">36735@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>On Nginx, I am using this for WordPress<br />
<pre><code># WordPress pretty URLs: (as per dominiek.com)
  if (-f $request_filename) {
  break;
  }
  if (-d $request_filename) {
  break;
  }
  rewrite ^(.+)$ /index.php?q=$1 last;

  # Enable nice permalinks for WordPress: (as per Yawn.it)
  error_page  404  = //index.php?q=$uri;</code></pre>
<p>and I want something similar for bbPress. Please share the solution!
</p>]]></description>
					</item>

	</channel>
</rss>

