﻿<IfModule mod_rewrite.c>
directoryindex home.php
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
Options All -Indexes

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://maxmusicas.com%{REQUEST_URI} [R=301,L]

RewriteRule ^top/?$ index.php [NC,L]
RewriteRule ^buscar/?$ buscador.php [NC,L]
RewriteRule ^generos/?$ generos.php [NC,L]
RewriteRule ^biografias/?$ biografias.php [NC,L]
RewriteRule ^biografia/?$ biografias.php [NC,L]
RewriteRule ^escucha/([^/]+)/?$ index.php?web=$1 [L]

RewriteRule ^biografia/bazzel/?$ - [R=404,L]

RewriteRule ^([^/]+)/biografia$ biografia.php?query=$1 [L]
RewriteRule ^biografia/([^/]+)$ biografia.php?query=$1 [L]

RewriteRule ^buscar/([^/]+)/$ buscador.php?query=$1 [L]
RewriteRule ^buscar/([^/]+)/([0-9]+)/?$ buscador.php?query=$1&page=$2 [L]

RewriteRule ^mp3/([^/]+)/$ buscador.php?query=$1 [L]
RewriteRule ^mp3/([^/]+)/([0-9]+)/?$ buscador.php?query=$1&page=$2 [L]
RewriteRule ^([^/]+)/$ index.php?genero=$1  [L]
RewriteRule ^musica/([^/]+)$ index.php?genero=$1  [L]
RewriteRule ^([^/]+)/([0-9a-zA-Z_\-]+)/?$ index.php?genero=$1&artista=$2 [L]
RewriteRule ^([0-9a-zA-Z_\-]+)/?$ index.php?artista=$1  [L,B]
RewriteRule ^([0-9a-zA-Z_\-]+)/([0-9a-zA-Z_\-]+)/([^/]+)/?$  index.php?genero=$1&artista=$2&mp3=$3 [L]
RewriteRule ^([0-9a-zA-Z_\-]+)/([0-9a-zA-Z_\-]+)/([^/]+)/([0-9]+)/?$ index.php?artista=$1&genero=$2&mp3=$3&id=$4 [L]

RewriteRule ^([^/]+).net$ index.php?web=$1.net
RewriteRule ^([^/]+).fm$ index.php?web=$1.fm
RewriteRule ^([^/]+).es$ index.php?web=$1.es
RewriteRule ^([^/]+).info$ index.php?web=$1.info
RewriteRule ^([^/]+).org$ index.php?web=$1.org
RewriteRule ^([^/]+).com$ index.php?web=$1.com
RewriteRule ^([^/]+).us$ index.php?web=$1.us
RewriteRule ^([^/]+).biz$ index.php?web=$1.biz
RewriteRule ^([^/]+).com.pe$ index.php?web=$1.com.pe
RewriteRule ^([^/]+).info$ index.php?web=$1.info
RewriteRule ^([^/]+).online$ index.php?web=$1.online

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

</IfModule>

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors Off
   php_value max_execution_time 30
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 150M
   php_value post_max_size 150M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
   php_value upload_max_filesize 150M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors Off
   php_value max_execution_time 30
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 150M
   php_value post_max_size 150M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
   php_value upload_max_filesize 150M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
