简体   繁体   中英

How to remove index.php in codeigniter with https://www. in the url?

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On

RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L]
RewriteRule ^search$ webapp/search/

</IfModule>

This code is not working in with https can any help or any solution.

" https://www.royez.com/category/ethnic-wear/kurtas-and-kurtis-97.html " is not working

https://www.royez.com/index.php/category/ethnic-wear/kurtas-and-kurtis-97.html working.

I found the solution of this question. The problem was that when I was redirecting the website to https the curl function stopped working.Now I rewrite the curl post function and problem is solved now. Thank you all

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM