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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:18:02+00:00 2026-06-06T04:18:02+00:00

I wan’t to divide my CI into multiple applications. I should say that it

  • 0

I wan’t to divide my CI into multiple applications. I should say that it is within a folder called app on the root /var/www/app/. First I tried this setup:

/system/
/application/
  /app1/
  /app2/
app1.php
app2.php
.htaccess

But I couldn’t get my htaccess to point correctly. Therefore I went ahead with this:

/system/
/app1/
  .htaccess
  /application/
  index.php
/app2/
  .htaccess
  /application/
  index.php

And now it works fine with urls: mysite.com/app/app1/index.php/welcome – but I would like to hide index.php from the URL. Therefore my .htaccess looks like this:

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

However it is not working, I get 404 when trying to access mysite.com/app/app1/welcome.
Could someone clarify whats wrong with my .htaccess? I have another .htaccess on the root and will run some wordpress from there, but would it affect my /app folder where CI runs?
Thank you so much!

  • 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-06T04:18:04+00:00Added an answer on June 6, 2026 at 4:18 am

    Alright so it’s working now. After some hours of debugging. I’m not sure exactly what did the trick, but I think I was missing a AllowOverride All in my default vhost. After apache restart and this htaccess in every /app/app1/ folder it started working:

    RewriteEngine on
    
    RewriteCond $1 !^(index\.php|gfx|css|app|js|robots\.txt)
    RewriteRule ^(.*)$ index.php/$1 [L]
    

    Thanks to everyone who contributed to my question.

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

Sidebar

Related Questions

i have uitextfield i wan that it should start entering text from top instead
Lets say I wan't to add 1 to an integer. This will only be
I wan't to add a subclass of UIViewController to a NSMutableDictionary which should be
I wan't to build SMS triggered app in my android. I know there's a
i wan to create a linked list that contains the name , age and
I wan't to animate a view that's shaped as an arrow, and I want
I wan't to perform an animation before quitting a view. The problem is that
I wan to fetch the ID, LASTEDITED, EXPIRESS attributes in the root element. I
I wan't to use this controll in my app but cant find which it
i wan to ask that if my machine got 1000/10000 of image and each

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.