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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:53:23+00:00 2026-05-27T21:53:23+00:00

I am use Codeigniter to creat my site. it is a huge site with

  • 0

I am use Codeigniter to creat my site. it is a huge site with a lot of contents.

i use the default welcome controller for all pages.

the path is like this now
http://mydomain.com/index.php/welcome

and my folder structure is like this

/root
  /codeigniter Application folder
      /controller
      /view
  /static/
      /images/
      /css/
      /pdf/
  .htaccess

because i am doing the content first, so all the images are set to absolute patch (http://mydomain.com/static/images/foldername/pc.jpg)

now when i use the rewrite to remove “inde.php” and “welcome”

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|system|pdf|sitemap\.xml|profile.htm|^([A-z,0-9,_,-]+).asp|(.*)\.pdf|phpadmin)
RewriteRule ^(.*)$ /index.php/welcome/$1 [L]

all css and image file are not accessible anymore. I have nearly a thousand pages with images. I don’t have the time to change the page one by one. the deadline is coming, please help.

thanks

  • 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-27T21:53:24+00:00Added an answer on May 27, 2026 at 9:53 pm

    Have you tried adding the css-folder to your excluded rewriteconditions?

    RewriteCond $1 !^(index\.php|images|robots\.txt|system|pdf|sitemap\.xml|profile.htm|^([A-z,0-9,_,-]+).asp|(.*)\.pdf|phpadmin)
    

    Does not seem to exclude the folder css from rewriting (see images is excluded).

    Try something like

    RewriteCond $1 !^(index\.php|images|css|robots\.txt|system|pdf|sitemap\.xml|profile.htm|^([A-z,0-9,_,-]+).asp|(.*)\.pdf|phpadmin)
    

    Good luck

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

Sidebar

Related Questions

In Codeigniter, when we use $this->load('class_name') in the controller, CI will try to create
I am trying to learn CodeIgniter to use for a shopping site, but I
Is there a way to integrate CodeIgniter with phpBB3? I would like to use
i use a simple PHP framework (like Codeigniter) without ORM. I have a database
i use of codeigniter Why not work $this->pagination->create_links() in my code? Problem 1: I
I would like for preg_replace_callback to use a library function from CodeIgniter as its
in codeigniter you can use wildcard to reroute. i never heard the word wildcards
should i use Classname() or __construct() as constructor in CodeIgniter? both work, which should
I'm running a LAMP environment with CodeIgniter. I want to be able to use
Warning: I don't have much experience with CodeIgniter and I am updating a site

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.