Even though static files and directories do work with a mod_rewrite’d wordpress installation in the servers root you might need to exclude your CodeIgniter subdirectory from that mod_rewrite lineup.
You can do so by placing an additional .htaccess file into the CodeIgniter directory and disable mod_rewrite in there:
<IfModule mod_rewrite.c>
RewriteEngine off
</IfModule>
Related: apache – Disable mod_rewrite for subdirectory
This normally does the job for me. But it can be less trivial in case that subdirectory needs a mod_rewrite configuration on it’s own (as some PHP Frameworks need).
To understand how the apache configuration works, please see Configuration Files (Apache Manual) and AllowOverride directive (Apache Manual).
Related Posts:
- WordPress installation site folder move to the final site destination
- Minecraft Server closes immediately after running?
- Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
- WAMP vs XAMPP pros/cons – for running a local testing server [closed]
- Moving a WP Multisite to a subdirectory
- WordPress local development environment [closed]
- Can you host WordPress using Amazon Web Services such as EC2, RDS, EBS etc?
- Move WordPress to subdirectory, keep ALL URLs
- Character encoding issue after changing servers
- File and directory permissions
- Non-WordPress page in subdirectory under WordPress page
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Place static HTML files in path below WordPress page
- Implement ssl to a WP docker container [closed]
- Site redirects to wrong url when saving settings
- .htaccess for wordpress inside another wordpress install
- WordPress in sub directory wp-admin problem
- Apache/Linux configuration changes to make automatic upgrade more straightforward
- Isolating WordPress to a subfolder
- Specific URL has 403 Forbidden status code
- How to? Redirect /category/sci-fi/ to /category/scifi/?
- Testing local server with MAMP/wordpress on mobile device? [closed]
- Suppress subdirectory from WordPress Multisite primary URL
- Permalinks not working on second wordpress installed in a subdirect
- Arabic Characters in URL returns 404 Error
- Move wordpress to folder without changing urls
- Change wp-content without changing the name of the folder
- How to install WordPress Multisite with different domains under the same subdirectory?
- Connect to server with SFTP instead of FTP/FTPS within WordPress Backup
- How to restrict access to wp-content, wp-includes and all sub-folders
- WordPress hangs when I publish or update a post [closed]
- Block Logged-Out User Access to Directory Outside of WordPress using .htaccess and PHP file
- Force Cron to run only on one server
- Redirect main domain to subdirectory
- Gutenberg: unable to save attributes with ServerRender
- Exclude subfolder from WP-redirect works with html but not php files
- WordPress incorrectly redirects to local IP address?
- Two identical wp-includes directories on server
- Handling the response sent from a ruby on rails application in wordpress
- How might I setup a development server (local) and a test/production server (remote)
- Why does WordPress get posts from MySQL from a virtual hostname but not the direct hostname?
- Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
- Giving WordPress its own subdirectory – nginx
- Can you have multiple wordpress sites under the same domain?
- Can’t delete unwanted favicon
- How to Better Control WordPress Cron Jobs?
- Change the actual (or viewable) WordPress directory structure
- Corrupt .htaccess file
- How to redirect subcategories to a page?
- Changing the server path
- Editing post and page responding 503 Service Unavailable
- Two live WP websites – how to sync?
- How to publish new posts/pages in root instead of subfolder, but keep old structure in place?
- what are the chmod rights recommended to give for every folders of wordpress projects
- Can’t Access Subdirectory
- WordPress hosting optimized servers – Is this just a sales gimmick? [closed]
- Access files at new location using old file paths
- Fixing custom 404 pages broken by WordPress in a subdirectory
- Case insensitive header params for API request
- WP install in sub-dir white screen
- External cron job firing too many times
- Preserve Domain Alias
- After updating to 4.8 permalinks will not work (all 404)
- Drawbacks to using Options -Indexes
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- WordPress installed in root, need second in subdirectory with different domain
- subdirectory install breaking existing links
- Does WP read itself?
- SSH Upgrade Problem
- Archived Server for Reference – Unable to Navigate Passed Homepage
- dev site running on subdomain is redirecting to the main domain
- htaccess, site and staging in subdirectories
- External content won’t load in iframe in Safari
- Unable to access folders in same level as wordpress installation
- copy wordpress site files on new server
- WordPress ACL (folder + permissions)
- subdirectory index.php is not working
- Multisite Subdirectory with same domain subdomain
- Lamp stack not supporting phpmyadmin? [closed]
- Reoccurring 404 Errors on all subpages
- HTTP Error on media upload, only httpd restart helps
- ModSecurity && Admin Ajax: Server locking up
- How to host unrelated pages on WordPress domain
- ReDirect subfolder link to another sub-folder and force SSL
- Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
- WP & Server Speed [Teacher Question]
- Disable directory browsing of uploads folder
- Moved WordPress site to new server, directory permissions not working correctly
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- Moving wordpress to an unknown outlet
- White screen on front page only
- Can’t access WP site over WiFi network
- Log Author Actions
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- How to redirect the frontend of a WordPress site (only)?
- Error message on blog posts only on my local environment [closed]
- WordPress hosting moved from windows server to linux server
- WordPress backup(on another server)leading to old server addy and WP
- cURL error for cron
- WordPress sub-directory on other server running on nginx?