Do not redirect POST requests with mod_rewrite
up vote
0
down vote
favorite
Struggling hard to find out why this doesn't work at all. It's redirecting literlly everything, so my captcha test fails (session variable sets twice due to redirect).
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]
It should work, but somehow it doesn't. What am I doing wrong to solve such a simple task?
redirect mod-rewrite
add a comment |
up vote
0
down vote
favorite
Struggling hard to find out why this doesn't work at all. It's redirecting literlly everything, so my captcha test fails (session variable sets twice due to redirect).
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]
It should work, but somehow it doesn't. What am I doing wrong to solve such a simple task?
redirect mod-rewrite
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Struggling hard to find out why this doesn't work at all. It's redirecting literlly everything, so my captcha test fails (session variable sets twice due to redirect).
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]
It should work, but somehow it doesn't. What am I doing wrong to solve such a simple task?
redirect mod-rewrite
Struggling hard to find out why this doesn't work at all. It's redirecting literlly everything, so my captcha test fails (session variable sets twice due to redirect).
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]
It should work, but somehow it doesn't. What am I doing wrong to solve such a simple task?
redirect mod-rewrite
redirect mod-rewrite
asked yesterday
Alex Petrov
357
357
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53237519%2fdo-not-redirect-post-requests-with-mod-rewrite%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password