Inicio > Codeigniter > .htaccess remover index.php en codeigniter

.htaccess remover index.php en codeigniter

Luego de buscar y buscar encontré un archivo .htaccess que si me ha funcionado para remover el index.php de la url en Codeigniter. El código es el siguiente:

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Various rewrite rules.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

El mismo fue tomado del la wiki de codeigniter. Es la solución Nº 3 de la siguiente publicación:
http://codeigniter.com/wiki/Dreamhost_.htaccess/

Categorías:Codeigniter Etiquetas: ,
  1. Aún no hay comentarios.
  1. Aún no hay trackbacks

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.