A
A
astrotrain2018-11-10 12:21:16
URL Handling
astrotrain, 2018-11-10 12:21:16

How to prevent POST requests from being redirected?

I need post requests not to be redirected, but this config doesn't work for some reason

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^ - [L]
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME } !-s
RewriteRule ^(.*)$ index.php?route=$1 [NC,L,QSA]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question