<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aleksandar Savic &#187; wordpress</title>
	<atom:link href="http://aleksandarsavic.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://aleksandarsavic.com</link>
	<description>simplicity is beautiful</description>
	<lastBuildDate>Mon, 08 Dec 2008 23:37:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Nginx and WordPress setup clean SEO friendly URLs</title>
		<link>http://aleksandarsavic.com/nginx-and-wordpress-setup-clean-seo-friendly-urls/</link>
		<comments>http://aleksandarsavic.com/nginx-and-wordpress-setup-clean-seo-friendly-urls/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 15:48:22 +0000</pubDate>
		<dc:creator>Aleksandar</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://aleksandarsavic.com/nginx-and-wordpress-setup-clean-seo-friendly-urls/</guid>
		<description><![CDATA[Open your nginx configuration file: # nano /etc/nginx/nginx.conf Locate your domain (example.com) virtual hosting configuration and before &#8220;location ~ \.php$ {&#8221; add following lines: if (!-e $request_filename) { rewrite ^(.*)$ /index.php?q=$1 last; break; } At the end your configuration should look as follows: server { server_name example.com; index index.php; root /var/www/example.com; if (!-e $request_filename) { [...]]]></description>
			<content:encoded><![CDATA[<p>Open your nginx configuration file:</p>
<pre># nano /etc/nginx/nginx.conf</pre>
<p>Locate your domain (example.com) virtual hosting configuration and before &#8220;location ~ \.php$ {&#8221; add following lines:</p>
<pre>if (!-e $request_filename) {
  rewrite  ^(.*)$  /index.php?q=$1  last;
  break;
}</pre>
<p>At the end your configuration should look as follows:</p>
<pre>server {
    server_name     example.com;
    index           index.php;
    root            /var/www/example.com;

    if (!-e $request_filename) {
      rewrite  ^(.*)$  /index.php?q=$1  last;
      break;
    }  

    location ~ .php$ {
       fastcgi_pass  localhost:9999;
       fastcgi_index index.php;
       fastcgi_param SCRIPT_NAME $fastcgi_script_name;
       fastcgi_param REQUEST_URI $request_uri;
       fastcgi_param DOCUMENT_URI $document_uri;
       fastcgi_param DOCUMENT_ROOT $document_root;
       fastcgi_param REMOTE_ADDR $remote_addr;
       fastcgi_param REMOTE_PORT $remote_port;
       fastcgi_param SERVER_ADDR $server_addr;
       fastcgi_param SERVER_PORT $server_port;
       fastcgi_param SERVER_NAME $server_name;
       fastcgi_param SCRIPT_FILENAME  /var/www/example.com$fastcgi_script_name;
       fastcgi_param QUERY_STRING $query_string;
       fastcgi_param REQUEST_METHOD $request_method;
       fastcgi_param CONTENT_TYPE $content_type;
       fastcgi_param CONTENT_LENGTH $content_length;
    }
}</pre>
<p>Save and close the file. Restart nginx:</p>
<pre># /etc/init.d/nginx restart</pre>
]]></content:encoded>
			<wfw:commentRss>http://aleksandarsavic.com/nginx-and-wordpress-setup-clean-seo-friendly-urls/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
