Quitar Index en Codeigniter amazon ubuntu.
Publicado por LEONARDO LIRA CAZARES (1 intervención) el 26/06/2018 19:46:13
Hola compañeros tengo Codeigniter pero localmente si me quita el index.php de las url al igual en el servior el problema empezo cuando inserte el sertificado ssl para que fuera https de hay para aca no me acepta las url si no tiene el index.php alguien me podria ayudar este es mi .htdaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) $1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Valora esta pregunta


0