First of all, here is my .htaccess: Then it works fine for URL. But when I see the firebug after submitting the form on PHP on my request, this situation is 303 permanently transferred. I am definitely certain that this problem is the line: But I do not know how to fix it. Thanks for the help! Edit: I also want to mention, that if I send data to PHP from javascript using jquery .ajax and type to post, then it works even more , $ _GET No matter what works just $ _POST when PHP is sent from HTML, then does not work. You are forcing client-side redirects, which means that the browser is specified through GET Will request a new page - This is the place where your form data has been lost. POST data is not preserved on a redirect, as the new page is not being loaded through POST. # Check the URL ends in a slash and if it redirects the same URL to any rewritecond% {REQUEST_URI}! -D RewriteCand% {THE_REQUEST} ^ [AGED] {3} / (([^ /] + /) * ([^ /.] +)) / \ HTTP / RewriteRule ^ (([^ /] + / ) * ([^ /.] +)) / $ Http: // localhost/example/ $ 1 [R = 301, L] For Example # extionless URL rewrite example / cmd restart ^ (^ ^ /.] +) $ Index.php? CMD = $ 1 [L, QSA] # extionless url Example in the form of URL / CMD / Action revolver ^ ([^ /] +) / ([^ /.] +) $ Index.php? CMD = $ 1 and # extionless URL rewrite for action = $ 2 [L, QSA] URL, as an example / CMD / AJAX revised rule ^ ([^ /] +) / ([^ /] +) / ([^ /.] +) $ Index.php? CMD = $ 1 and action = $ 2 & AJAX = $ 3 [L, QSA]
RewriteRule ^ (([^ /] + /) * ([^ /.] +)) / $ Http: // localhost / example / $ 1 [R = 301, L]
Comments
Post a Comment