<div dir="ltr">I apologize for being lazy... Here is my actual rewrite from the sites-available dir, which includes that preceding slash...<br><br>location / {<br> if (!-e $request_filename) {<br> rewrite ^/(.*)$ /index.php?q=$1 last;<br>
}<br> }<br><br><br clear="all">-- Adam<br><br>"Courage is not the absence of fear, but rather the judgment that something else is more important than fear." — Ambrose Redmoon<br>
<br><br><div class="gmail_quote">On Sat, Aug 23, 2008 at 9:55 AM, Roxis <span dir="ltr"><<a href="mailto:roxis@list.ru">roxis@list.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Saturday 23 August 2008, Adam Setzler wrote:<br>
> Upon further inspection, I am getting a 405 when POST is submitting to a<br>
> Drupal module and Clean URL is enabled. It works fine without Clean URLs.<br>
> It is an AJAX form that submits to /upload/js (clean) OR<br>
> index.php?q=upload/js (dirty).<br>
><br>
> My rewrite is ^/(.*)$ index.php?q=$1<br>
<br>
</div>add a slash before index.php<br>
<br>
rewrite ^/(.*)$ /index.php?q=$1<br>
<br>
</blockquote></div><br></div>