Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8480165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:13:20+00:00 2026-06-10T19:13:20+00:00

I recently uploaded my codeigniter project onto my web server. it’s in a folder

  • 0

I recently uploaded my codeigniter project onto my web server.

it’s in a folder called project1 this is what my directory view looks like

[www.myurl.com]
  |-> project1
        |-> application
        |-> css
        |-> images
        |-> js

I am having two problems.

The first is that I want it to load my welcome view when I go to (www.myurl.com) and not
(www.myurl.com/project1/main_controller/index.php/welcome). How do i get rid of all that garbage?

The second problem is when I use <?php echo base_url();?> it shows up fine in view source but when I click on it, it echo’s the url [www.myurl.com/project1/www.myurl.com/project1/] why is it doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:13:22+00:00Added an answer on June 10, 2026 at 7:13 pm

    It looks like you’ve installed CodeIgniter into a subdirectory. If you want your CI site to load from the root url, you should copy it one directory up so the Application & System folders are directly under the root url of your web directory. From there, the .htaccess rules that are posted by shail (and quoted below) should take care of removing the index.php in your paths.

    RewriteEngine on 
    RewriteCond $1 !^(index\.php|images|robots\.txt) 
    RewriteRule ^(.*)$ ci/index.php/$1 [L]
    

    Regarding the site_url() issue, make sure you have your $config[‘base_url’] variable set in application/config/config.php and that it contains the trailing slash.

    $config['base_url'] = "http://www.myurl.com/";
    

    To test this further, try passing a parameter to the site_url() function like this:

    echo site_url(welcome);
    

    Which should return: http://www.myurl.com/welcome if everything is set right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently created my first EC2 instance through Amazon Web Services and uploaded my
I have recently uploaded a website for basic web designing tutorials with proper examples
recently i uploaded my application to production server, which have ajax jquery calling my
I recently uploaded my application to the android market however it's refusing to run
Hi guys I recently uploaded a site made with wordpress. The site url is
I recently started a project, using Apple's Utility Application example project. In the example
I recently uploaded my ASP.NET MVC 2 Preview 2/.NET 4 application (Built using VS
Hello I have recently uploaded an application to the app store and it got
I'm using Xode 4, and i have recently uploaded my first app... but now
I recently finished my project in xcode and decided to test it on my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.