<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Wordpress_Ngnix_Rewrite_Rules</id>
		<title>Wordpress Ngnix Rewrite Rules - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Wordpress_Ngnix_Rewrite_Rules"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Wordpress_Ngnix_Rewrite_Rules&amp;action=history"/>
		<updated>2026-06-04T13:26:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Wordpress_Ngnix_Rewrite_Rules&amp;diff=487&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==Wordpress + Nginx Rewrite Rules==  After installing Nginx you noticed that it does not play nice with the default .htaccess rewrite rules.  You will want to add the followin...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Wordpress_Ngnix_Rewrite_Rules&amp;diff=487&amp;oldid=prev"/>
				<updated>2014-02-09T04:19:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Wordpress + Nginx Rewrite Rules==  After installing Nginx you noticed that it does not play nice with the default .htaccess rewrite rules.  You will want to add the followin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Wordpress + Nginx Rewrite Rules==&lt;br /&gt;
&lt;br /&gt;
After installing Nginx you noticed that it does not play nice with the default .htaccess rewrite rules.&lt;br /&gt;
&lt;br /&gt;
You will want to add the following to your vhost file for nginx.&lt;br /&gt;
&lt;br /&gt;
To get the default wordpress to function correctly without custom rewrite rules, add the following to your vhost file.&lt;br /&gt;
&lt;br /&gt;
 vim /path/to/your/vhost.conf &lt;br /&gt;
&lt;br /&gt;
Add the following &lt;br /&gt;
&lt;br /&gt;
 if (!-e $request_filename) {&lt;br /&gt;
    rewrite ^(.+)$ /index.php?q=$1 last;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Now check and make sure all syntax is correct&lt;br /&gt;
&lt;br /&gt;
 nginx -t&lt;br /&gt;
&lt;br /&gt;
Then restart nginx if all is correct&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/nginx restart&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>