there is some module or variable in htaccess

0

Open some module or variable that can get me the name of the server that is currently.

Example: If I'm on localhost, tell me localhost or if I'm in a domain midominio.com

is for it to be automatic and not to be putting the domain on the rewrite of Apache .

Options +FollowSymLinks
RewriteEngine On
RewriteBase /



RewriteRule ^([-a-zA-Z0-9/]+)$ index.php?module=$1 [QSA]

RewriteRule ^([aA-zZ])$ index.php?site=$1 [QSA]
RewriteCond %{HTTP_HOST} ^(^.*)\.localhost 
RewriteRule (.*) index.php?site=%1 [QSA]
    
asked by juan cruz 19.12.2018 в 19:04
source

0 answers