1

I am using below code to get current_url() but find that www.xxxx.com/index.php/home/xxxx. index.php is skipped in calling current_url(). It store www.xxxx.com/home/xxxx. Is it really normal behavior? If i need to include index.php, how to do??

0

2 Answers 2

3

Try this,

Open config.php and do following replaces

$config['index_page'] = ""

to

$config['index_page'] = "index.php"

Sign up to request clarification or add additional context in comments.

Comments

1

can do 2 tips

  1. in config.php

    $config['index_page'] = "index.php"
    
  2. In config.php

    $config['base_url'] = 'www.example.com/index.php/';
    

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.