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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:45:38+00:00 2026-06-08T09:45:38+00:00

I have setup a CodeIgniter Application on my server at the following URL: http://subdomain.domainame.com/something1/something2/

  • 0

I have setup a CodeIgniter Application on my server at the following URL:

http://subdomain.domainame.com/something1/something2/

(I have used something1 and something 2 as examples)

Now, I can access the application perfectly fine when using the above URL and can add /index.php/controller/action etc to the end.

I have tried to setup a .htaccess file in the same directory the application is hosted but it doesn’t seem to be working.

The .htaccess file contains the following:

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

This is giving me a 500 Internal Server Error.

Can anyone shed some light on 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-08T09:45:39+00:00Added an answer on June 8, 2026 at 9:45 am

    I think I might have solved this.

    Changed:

    RewriteRule ^(.*)$ something1/something2/index.php?/$1 [L]
    

    To:

    RewriteRule ^(.*)$ /something1/something2/index.php?/$1 [L]
    

    I am no longer getting an internal server error.

    In order to assist anyone coming across this question, here is my full .htaccess file:

    RewriteEngine on
    RewriteCond $1 !^(index\.php|images|robots\.txt)
    RewriteRule ^(.*)$ /something1/something2/index.php?/$1 [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have setup Codeigniter on my server and I installed Grocery crud on it.
I am making use of Codeigniter and I currently have this URL format setup:
I have a cron task setup to run the following: php /var/www/vhosts/examplesite.com/index.php cron processCategoryItemCount
I have two applications in the following setup: /srv/http/myroot -> main site /srv/http/myroot/myforum ->
I'm a complete Codeigniter noob. I think I have everything setup properly, and the
I have setup Custom Domain https://developers.google.com/appengine/docs/domain I have uploaded An SSL certificate and private
I have a funny thing going on with my local dev setup. Using codeigniter
I have setup a fresh install of codeigniter 2x and modular extensions (https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home) It
I have written the registration page in my CodeIgniter application. Everything works fine, and
I have a CodeIgniter MVC application. I have a model called city that has

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.