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

  • SEARCH
  • Home
  • 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 911297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:10:58+00:00 2026-05-15T17:10:58+00:00

Hello there I am having some thoughts on my file structure in codeigniter.What I’m

  • 0

Hello there I am having some thoughts on my file structure in codeigniter.What I’m doing right now is creating a folder with the project I’m developing for and name it let’s say “myProject”
then I put my codeigiter folder inside that file.And then everything is done normally as by creating a class called myProject again on the controllers folder…

this structure works but it creates urls that are really ugly(for example in a local server):
http://localhost/myBlog/CodeIgniter_1.7.2/index.php/myBlog

also it creates some issues with my root folder…so if I have a css folder in my root I should call it like that:
“/myBlog/CodeIgniter_1.7.2/css/myBlogStyle.css”

and not like that:
“css/myBlogStyle.css”

do you have any suggestions on which is the right way to work with codeigniter?
thanks in advance

  • 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-05-15T17:10:58+00:00Added an answer on May 15, 2026 at 5:10 pm

    Just make your folder at the root level. Get rid of the CodeIgniter_1.7.2, you don’t need that folder.

    C:
      xampp (or whatever)
         www (or htdocs)
            myblog
               application
               system
               ...
    

    For your css:

    C:
      xampp (or whatever)
         www (or htdocs)
            myblog
               application
               system
               css (put your css scripts in a folder call css)
                  default.css
    

    Then to access it, just

    <link href="<?php echo base_url();?>css/default.css" rel="stylesheet" type="text/css" />

    To get rid of your “index.php” from your scripts, change/add a .htaccess file to the file like this. Just google a file of it and change the rewrite rule to:

    RewriteRule ^(.*)$ /myblog/index.php?/$1 [L]
    
    C:
      xampp (or whatever)
         www (or htdocs)
            myblog
               application
               system
               css (put your css scripts in a folder call css)
                  default.css
               .htaccess 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i am having some problems generating random numbers with C# Now i have
Hello I've been a Rails developer on Windows for quite some time now, but
I'm having a strange issue with some @font-face text where there is some strange
Hello i am having some problems sending mails thoug my site. I keep getting
I'm having some trouble figuring this out. I have the following CSV string hello
I'm having the strangest issue right now with google app engine. I'm sending a
Hello and thank you in advance for the help. I am having some trouble
I'm having some trouble accessing the data attributes of a dynamically(ajax) loaded file. For
I have to create some sort of text file in which there are numbers
Hello and good afternoon, I'm having some issues here, and to be honest, I

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.