Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/09/2012, 01:30
miktrv
 
Fecha de Ingreso: julio-2008
Ubicación: Barcelona
Mensajes: 2.100
Antigüedad: 15 años, 9 meses
Puntos: 165
Redirección html no funciona en htaccess

Hola buenas,

Tengo el siguiente código htaccess que uso en codeigniter. Resulta que necesito hacer una s redirecciones html a la nueva web, pero no funciona... si quito condiciones del fichero funciona, pero al convivir la redirección html con el resto no va

Código Apache:
Ver original
  1. <IfModule mod_rewrite.c>
  2.     RewriteEngine On
  3.     RewriteBase /
  4.  
  5.     RewriteRule ^mi-fichero.html$ controlador/metodo
  6.  
  7.     #Removes access to the system folder by users.
  8.     #Additionally this will allow you to create a System.php controller,
  9.     #previously this would not have been possible.
  10.     #'system' can be replaced if you have renamed your system folder.
  11.     RewriteCond %{REQUEST_URI} ^system.*
  12.     RewriteRule ^(.*)$ /index.php?/$1 [L]
  13.    
  14.     #When your application folder isn't in the system folder
  15.     #This snippet prevents user access to the application folder
  16.     #Submitted by: Fabdrol
  17.     #Rename 'application' to your applications folder name.
  18.     RewriteCond %{REQUEST_URI} ^application.*
  19.     RewriteRule ^(.*)$ /index.php?/$1 [L]
  20.  
  21.     #Checks to see if the user is attempting to access a valid file,
  22.     #such as an image or css document, if this isn't true it sends the
  23.     #request to index.php
  24.     RewriteCond %{REQUEST_FILENAME} !-f
  25.     RewriteCond %{REQUEST_FILENAME} !-d
  26.     RewriteRule ^(.*)$ index.php?/$1 [L]
  27.  
  28. </IfModule>
  29.  
  30. <IfModule !mod_rewrite.c>
  31.     ErrorDocument 404 /index.php
  32. </IfModule>
__________________
Gracias por el Karma :D

empleo ofertas de trabajo