.htaccess - Codeigniter remove index.php on https -
i using godaddy server provider , bought ssl certificate. gave me headache index.php in codeigniter project. can not remove index.php url. researched around , tried found nothing works me, not consider double please.
if: https://example.com/index.php/home - works fine
if: https://example.com/home
404 error. not found requested document not found on server.
far, have stoped @ these conditions in htaccess file:
rewriteengine on rewritecond %{https} off rewritecond %{request_uri} (sale|success|cancel) [nc] rewriterule ^(.*)$ https://%{http_host}%{request_uri} [r=301,l] rewritecond %{https} on rewritecond %{request_uri} !(static|sale|success|cancel) [nc] rewriterule ^(.*)$ http://%{http_host}%{request_uri} [r=301,l] rewritecond $1 !^(index\.php|resources|robots\.txt|static) [nc] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l,qsa]
any advice helpful. thank you!
remove index.php $config['base_url'].
then use link remove index.php url
http://addictors.in/remove-index-php-from-url-in-codeigniter/
then restart server
Comments
Post a Comment