fix rewrite for api calls to not redirect
This commit is contained in:
parent
98baf9acc6
commit
aad85224b5
@ -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]
|
||||
|
@ -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);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user