I have a problem with the rewrite in .htaccess
I am trying to get a varible by RewriteRule
. the issue is that it does not return the empty variable.
.htaccess
Header set Access-Control-Allow-Origin "*"
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(^.*)\.localhost
RewriteRule (.*) inc/whiteDomains.php?site=%1 [QSA]
RewriteRule ^(.*[-a-zA-Z0-9/]+)$ inc/whiteDomains.php?ruta=%1 [QSA]
RewriteRule ^(.*)file/(.+)$ vistas/getFile.php?file=$1 [QSA]
DirectoryIndex vistas/autoload.php