My .htaccess files has a rule in it:

```
RewriteRule ^submit index.php?task=submit [L]

```

which redirects links on the site referencing index.php?task=submit to /submit.

However, I am posting information to this same page so that eventually the URL looks something like this:

```
index.php?task=submit&path=xyz&key=xyz.jpg&code=1234

```

Due to the nature of the posting method I have to post to index.php?task=submit.

Is there a rule that will rewrite the url if the user manually enters the extended path as the url?