in Education by
I have a website where all requests are redirected silently (via .htaccess) to index.php and then PHP is used to show the correct page (by parsing the REQUEST_URI). I was wondering if it's possible to submit POST data to a fake address too? I've currently got my form like so... And my .htaccess rule is... # redirect mail posting to index RewriteRule send-mail index.php?send-mail [NC,L] My index.php checks isset($_GET['send-mail']) which works fine. This however seems to drop off all the POST data that should be sent to it. Is there a way to keep the post data? I don't want to use GET because it can't send as much information, though it might not be an issue with a simple inquiry form. Here is my .htaccess for redirecting to index.php # serve files and dirs if they exist please, otherwise send to index RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . index.php JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Try this: # redirect mail posting to index RewriteRule send-mail index.php?send-mail [NC,P] "P" acts like "L" in that it stops processing rules but it also tells the module that the request should be passed off to the proxy module intact (meaning POST data is preserved).

Related questions

0 votes
    I have laravel website and there is blog folder which contain wordpress blog. In my htaccess I want some ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    Why it doesn't display POST value? Error: Notice: Undefined index: q[abc] in line: echo $_POST[' ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 13, 2022 in Education by JackTerrance
0 votes
    I have designing the TabMenu Like following $(function() { $('#container-1').tabs(); $(' ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    I have designing the TabMenu Like following $(function() { $('#container-1').tabs(); $(' ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    The Sitecore package wizard can be used to build a package containing data and files for the local Sitecore ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 16, 2022 in Education by JackTerrance
0 votes
    Describe how it is possible to ensure that data is received in the correct groups when using synchronous data transmission. PLEASE FAST Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    Is it possible to store a huge amount of data in a memory engine using Tableau? If yes, how can we achieve that?...
asked Oct 30, 2020 in Technology by JackTerrance
0 votes
    Is it possible to model transitioning data like time-zone or a working directory? State reason behind your answer....
asked Oct 16, 2020 in Technology by JackTerrance
0 votes
    I want to get the search result using scrapy post request after giving the input to CP Number as 16308 ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 1, 2022 in Education by JackTerrance
0 votes
    first of all,i am fairly new with spring mvc so .. how springmvc find the right class to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    How can we POST JSON data with cURL?...
asked Jan 11, 2021 in Technology by JackTerrance
0 votes
    I have a GWT application that I am trying to login using spring security. Currently, after a successful ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I'm currently using Cloud Firestore as my backend for a mobile app. I've got basic payments working ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 19, 2022 in Education by JackTerrance
...