htaccessファイルを書き換えてURLからindex.phpを削除しました
RewriteEngine on
RewriteCond $1 !^(images|media|system|themes|_css|_js|favicon\.ico|robots\.txt|cert\.html|index\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]
これに加えて、とを強制したいのですwww
がhttps
、どちらも持たないリクエストに対しては。
したがって、最終的にすべてのURLは次のようになりますhttps://www.example.com/whatever/something/
。また、SEOの目的で、URLがマークを外した場合、次のように正しいバージョンにリダイレクトする必要があります。
http://example.com/about/
301 redirect to
https://www.example.com/about/
それを達成するための助けが欲しいです、ありがとう!