php - not able to post the form because of .htaccess -


note:this may possible duplicate question. but .htaccess bit different , problem unable post next page....

ie:form action="another.php" method="post"> orform action="another" method="post"> not working.

can 1 kindly tell me change has made

. .htaccess page shown below

rewriteengine on  #submydomain , folders rewritecond %{http_host} !^jobs\.mydomain.in [nc] rewriterule ^(.*)$ http://jobs.mydomain.in/$1 [r=301,l]  #remove .php , ad slash rewritecond %{request_filename} !-d rewriterule ^([^/]+)/$ http://mydomain.in/jobs/$1 [r=301,l]  # redirect external .php requests extensionless url rewritecond %{the_request} ^(.+)\.php([#?][^\ ]*)?\ http/ rewriterule ^(.+)\.php$ http://mydomain.in/jobs/$1 [r=301,l] # resolve .php file extensionless php urls rewriterule ^([^/.]+)$ $1.php [l] 

if you're hiding .php extension shouldn't keep in form action. have <form> this:

form action="another" method="post"> 

otherwise posted url externally redirected /another removing .php extension , post data lost.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -