fix rewrite for api calls to not redirect

This commit is contained in:
root 2017-12-05 13:53:05 -03:00
parent 98baf9acc6
commit aad85224b5
2 changed files with 3 additions and 6 deletions

View File

@ -6,5 +6,5 @@ RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]
#301 from example.com/page.html to example.com/page
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.php\ HTTP/
RewriteRule ^(.*)\.php$ /$1 [R=301,L]
#RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.php\ HTTP/
#RewriteRule ^(.*)\.php$ /$1 [R=301,L]

View File

@ -98,9 +98,6 @@ else if(!verifyCaptcha()){
$errors['recaptcha'] = 'Error en la validación de ReCaptcha';
}
/*GUAMBIA ACAAA!!!!*/
$errors=array();
/* NO GILEAR!!!!!*/
if ( !empty($errors)) {
@ -132,4 +129,4 @@ else {
// return all our data to an AJAX call
echo json_encode($data);
?>
?>