0

Benim şu anki CodeIgniter .htaccess olduğunu. Biri kök ve başka bir uygulama klasöründe..htaccess birden kuralları yeniden yazın

Bir defada yeniden yazma kuralları aşağıdaki yazmak istiyorum:

1. Kaldır index.php

2. Kuvvet yönlendirmek www.example.com http s: // example.com

3. Kuvvet http http.example.com yönlendirme s: //example.com

4. Kuvvet s http www.example.com/cart yönlendirmek: Deneyin //example.com/cart

cevap

1

bu:

RewriteEngine on 
RewriteCond %{HTTP_HOST} ^example.com$ 
RewriteRule ^(.*) https://example.com/$1 [QSA,L,R=301] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule .* index.php/$0 [PT,L] 

Ve config.php

(codeignter):

$config['index_page'] = ''; 

ben yardımcı umut :)

+0

değil wo rking. http: // localhost/dashboard –

+0

adresinize .htaccess'i yönlendirir –