kamkam
07-16-2007, 11:17 AM
Hi;
I am testing for how to use the Apaches's Mod_Rewrite for user submit their new thread like this forum does.
The following are my result from my test.
Not Found
The requested URL /tutorials/13/0.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I am hosting at the movement. And i have put the Rewrite rule to the .htaccess file as following;
RewriteRule ^tutorials/(.*)/(.*).php /tutorials.php?req=tutorial&tut_id=$1&page=$2
and in my post.php file, the code as following;
<html>
<body>
<form action="http://www.forum.me.com/tutorials/13/0.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
</body>
</html>
But when i click the submit button, it bring out the above result which i have highlighted to me.
1) Could you tell me what i have done wrong?
2) how to set up a new page with some content for the "http://www.forum.me.com//tutprials.php?req=tutorial&tut_id=13&page=0"
Thanks
I am testing for how to use the Apaches's Mod_Rewrite for user submit their new thread like this forum does.
The following are my result from my test.
Not Found
The requested URL /tutorials/13/0.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I am hosting at the movement. And i have put the Rewrite rule to the .htaccess file as following;
RewriteRule ^tutorials/(.*)/(.*).php /tutorials.php?req=tutorial&tut_id=$1&page=$2
and in my post.php file, the code as following;
<html>
<body>
<form action="http://www.forum.me.com/tutorials/13/0.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
</body>
</html>
But when i click the submit button, it bring out the above result which i have highlighted to me.
1) Could you tell me what i have done wrong?
2) how to set up a new page with some content for the "http://www.forum.me.com//tutprials.php?req=tutorial&tut_id=13&page=0"
Thanks