簡體   English   中英

如何在https://www.codeigniter.com中刪除index.php。 在網址中?

[英]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>

這段代碼不適用於https可以提供任何幫助或任何解決方案。

https://www.royez.com/category/ethnic-wear/kurtas-and-kurtis-97.html ”無法正常工作

https://www.royez.com/zh-CN/index.php/category/ethnic-wear/kurtas-and-kurtis-97.html工作。

我找到了這個問題的解決方案。 問題是當我將網站重定向到https時,curl函數停止工作。現在,我重寫了curl發布函數,現在問題已解決。 謝謝你們

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM