Trouble posting to plugin controller I'm working on a plugin to do subscription billing with paypal. I have the following controller

class PaypalSubscription_SubscriptionController extends BaseController {

    public function actionSubscriptions() {
        // This renders a form that collects some info on subscription options
    }

    public function actionSubscribe() {
        $this-&gt;requirePostRequest();
        // This takes data and starts a paypal transaction
    }
}


I can get to the form by going to /actions/paypalSubscription/subscription/subscriptions

I've tried hard coding the url /actions/paypalSubscription/subscription/subscribe as well as using actionUrl('/paypalSubscription/subscription/subscribe'). The actionUrl call prepends index.php/actions to the string which is just incorrect, and either way both approaches 404. What am I missing here?

I know that i'm logged in and that works correctly since I can reach the original form and anonymous access shouldn't be turned on, so I don't believe that's the issue.
Does the request requires login?
If it doesn't, you need to add the exception on the controller
protected $allowAnonymous = array('actionSubscribe');

Also, did you try adding admin to your URL?
&lt;input type="hidden" name="action" value="/admin/actions/paypalSubscription/subscription/subscribe"&gt;

I was trying to post to an action once through the front-end and it only worked after adding /admin