here's my routes file:
Route::any('target',function(){
return 'got it!';
});
here's my form:
<form method='post' action='example.com/target'>
<input type='text' name='message' />
<input type='submit' name='submit' />
</form>
so It doesn't matter what I fill as the message
field , It should return me got it!
but when I enter a url
in message
field , no matter the method is POST or GET , whether the path exist's or not, I get redirected to the root (example.com
)
I don't have this problem on localhost, but on the shared host
thanks