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 8336293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:56:29+00:00 2026-06-09T03:56:29+00:00

Hi i am new to codeigniter. I tried to do the basic things but

  • 0

Hi i am new to codeigniter. I tried to do the basic things but i’m getting errors. I’m using v.2.12.
I want to do two things.
1. Remove index.php
2. Add external style sheet to my views.

I found lot of tutorial but no one is working for me. If index.php is removed then css not working.
So can any one assist me how to do this?

I’m trying to do this basic things from the morning.

So please help me.

Thanks for reading my post

  • 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-09T03:56:32+00:00Added an answer on June 9, 2026 at 3:56 am

    well, your config page

    $config['base_url'] = 'http://localhost/t/';
    $config['index_page'] = '';
    

    your .htaccess in root folder should contain following. Make sure to change path in RewriteBase to your path.

    RewriteEngine on
    RewriteBase /t/
    RewriteCond $1 !^(index\.php|resources|robots\.txt)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]
    

    And in your views

    <link href="<?php echo $this->config->base_url();?>css/layout.css" rel="stylesheet" type="text/css" />
    

    Hope this helps

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

Sidebar

Related Questions

I am new in codeigniter, even in PHP. I want to upload a zipped
hi i am new at codeigniter. i want to change my div tag using
I'm starting a new project using Linux and PHP, but for the early dev
I'm new in CodeIgniter and read user guide from website. Using pagination class, pagination
I'm really new to CodeIgniter and am having some trouble getting started. I see
I am new to PHP Codeigniter framework. I am designing a page in which
I’m new to codeigniter and maybe my question is a bit stupid but..I cant
I want to submit a form using jQuery in a CodeIgniter application. However, the
Using Codeigniter, I am trying to get a php script to run after a
EDIT: I am using Code Igniter: www.codeigniter.com So I'm new to web developement and

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.