Ok, I followed a tutorial online and was trying to get rewrite working on my server.  Well, everything works ok except for my Photo gallery which is located in | &lt;domain&gt;/gallery |.  I&#39;ll include my current config for the domain (wfto.cc and wfto.cc/gallery)<br>
========================<br>server {<br>        listen 80;<br>        server_name <a href="http://www.waterfortheoppressed.com">www.waterfortheoppressed.com</a> <a href="http://waterfortheoppressed.com">waterfortheoppressed.com</a>;<br>
<br>        rewrite ^ <a href="http://wfto.cc">http://wfto.cc</a> permanent;<br>}<br><br>server {<br>        listen   80;<br>        server_name <a href="http://www.wfto.cc">www.wfto.cc</a>  wfto.cc;<br><br><br>        access_log  /var/www/logs/wfto.cc.access.log;<br>
<br>        location = / {<br>                root   /var/www/wfto.cc;<br>                index  index.php index.html index.htm;<br>        }<br>        location / {<br>            root   /var/www/wfto.cc;<br>            index  index.php index.html;<br>
<br>            if (!-f $request_filename) {<br>                rewrite  ^(.*)$  /index.php?q=$1  last;<br>                break;<br>            }<br><br>            if (!-d $request_filename) {<br>                rewrite  ^(.*)$  /index.php?q=$1  last;<br>
                break;<br>            }<br>        error_page  404  /index.php;<br><br>        # serve static files directly<br>        location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico)$ {<br>              access_log        off;<br>
            expires           30d;<br>        }<br>        # redirect server error pages to the static page /50x.html<br>        #<br>        error_page   500 502 503 504  /50x.html;<br>        location = /50x.html {<br>                root   /var/www/nginx-default;<br>
        }<br><br>        # proxy the PHP scripts to Apache listening on <a href="http://127.0.0.1:80">127.0.0.1:80</a><br>        #<br>        #location ~ \.php$ {<br>                #proxy_pass   <a href="http://127.0.0.1">http://127.0.0.1</a>;<br>
        #}<br><br>        # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000">127.0.0.1:9000</a><br>        #<br>        location ~ \.php$ {<br>                fastcgi_pass   <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;<br>
                fastcgi_index  index.php;<br>                fastcgi_param  SCRIPT_FILENAME  /var/www/wfto.cc$fastcgi_script_name;<br>                include        fastcgi_params;<br>        }<br><br>        # deny access to .htaccess files, if Apache&#39;s document root<br>
        # concurs with nginx&#39;s one<br>        #<br>        location ~ /\.ht {<br>                deny  all;<br>        }<br>}<br>}<br>========================<br><br>Claude<br clear="all"><br>-- <br><br><a href="http://www.brainyquote.com/quotes/authors/l/laurence_j_peter.html" target="_blank">Laurence J. Peter</a>  - &quot;Originality is the fine art of remembering what you hear but forgetting where you heard it.&quot;