php - How can i request values from Apache rewritten url
Get the solution ↓↓↓Ive been trying to get a request values from an apache rewritten url and its not working. This is the code that sends the value from "localhost/rewritetest/frog" :
<a href = "recieve.php?value=frog">Frog</a>
The code that recieves the value at "localhost/rewritetest/recieve.php?value=frog" :
$value = isset($_REQUEST["value"]) ? $_REQUEST["value"] : '';
echo $value;
The above code works very well but when i rewrite the url from my .htaccess file, to turn "localhost/rewritetest/recieve.php?value=frog into localhost/rewritetest/recieve/frog" using this code in my .htaccess file :
RewriteEngine On
RewriteRule ^recieve/([^/]+)/?$ recieve.php?value=$1 [QSA]
The page succeesfully redirects but is not retrueving $value. Please Help Me
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: cannot set properties of undefined (setting '_dt_cellindex')
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.