Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/03/2015, 16:41
quico5
 
Fecha de Ingreso: enero-2008
Mensajes: 580
Antigüedad: 16 años, 3 meses
Puntos: 9
RewriteBase en 1and1

parece que 1and1 me obliga a especificar la ubicación actual (RewriteBase /2016/) me gustaria que fuese automatico, sin tener que indicarle la ruta o subruta, gracias

Código:
<IfModule mod_rewrite.c>

DirectoryIndex index.php
Options -MultiViews
Options -Indexes
RewriteBase /2016/
RewriteEngine On

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

RewriteCond $1 !^(index\.php|favicon.ico|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]

</IfModule>