Maybe try something like this..
.htaccess
on your root:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
.htaccess
inside your /wordpress/
directory:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
.htaccess
in your /codeigniter/
directory:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /codeigniter/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /codeigniter/index.php [L]
</IfModule>
# END WordPress
Related Posts:
- Best collection of code for your .htaccess file [closed]
- Static raw HTML page
- Two domains on one WordPress Installation
- WordPress best solution shared theme for consumers and businesses (two url’s one instaltion)
- Giving WordPress its own subdirectory – nginx
- Hardening wordpress: blocking /includes with htaccess
- WP install in sub-dir white screen
- WordPress installed in root, need second in subdirectory with different domain
- create a static folder independent with WordPress
- Redirect to another page using contact form 7? [closed]
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- Install second wordpress in root subfolder, Error 404
- How can I stop WordPress from catching URL’s for static pages that I save on my server
- WordPress site hacked. Has .htaccess been hacked?
- .htaccess and 500 error, extra character added
- Place static HTML files in path below WordPress page
- htaccess rewrite for author query string when WP is in subfolder
- Why “Settings->Permalinks” creates .htaccess file on nginx server?
- .htaccess file redirecting to parent directory
- Cloning and syncing a WordPress website
- Rewrite rule not working
- Correct htaccess to display page while also passing in GET parameters
- Using “wordpress_logged_in” to restrict direct access to uploads folder in 2021
- Temporary .htaccess blocking is disabling WP Crons from running?
- .htaccess redirects disappeared after re-saving permalinks
- How have I misconfigured basic auth for my wordpress site?
- Redirect main domain to subdirectory
- WordPress multilingual website domain and folders
- Attach to wp-login.php and xmlrpc.php
- Removing code added to htaccess with insert_with_markers
- Updating Widget options in custom install.php
- How to check what plugins used to be on a WordPress installation?
- WordPress 404 on Subdomain
- Can’t Access Subdirectory
- Why is my mod_rewrite not working?
- Override htacces rule only for specific directory
- How To Allow Only Specific User Agent To Access a URL?
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- How can I enable keep alive (Not accessing to Apache)
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- htaccess has broken my site
- TimThumb & htaccess : clean url
- HTTP Error 406 always on site?
- Point all URLs to homepage but maintain URL
- htaccess working on local server but not on live server
- External content won’t load in iframe in Safari
- How to write .htaccess so that https is on for subpages only but not the home page
- Only Allow Front End Access
- .htacess rewrite condition: page to seconddomain/page
- Custom rewrite rule, url returning 404
- mod_rewrite doesn’t work as I want even with JSON API Plugin disabled
- WordPress Multisite – Create Default Post and New Category On New Site Install
- WordPress .htaccess file gives issues with subdirectory
- W3 Total Cache CSS & JS files GZip issues [closed]
- WP Super Cache unable to locate cache file for only the homepage
- Cannot login to WordPress site after changing .htaccess for security purposes
- WordPress 3.1 .htaccess contents keep dissappearing?
- WordPress permalink, stop redirection
- add_rewrite_rule to remove /category/ from permalink
- Instant install of wordpress
- disable WordPress 404 for one specific page/folder to receive actual php errors
- .htaccess Non-‘www’ to ‘www’ Subdomain Redirection Only Works for Homepage
- .htpasswd asking for authentication on home page
- Non WordPress Folder in a WordPress Site
- WordPress login fail after .htaccess domain redirect
- WordPress Install Issue, Receive Warnings But Successful Install
- Access sub-domain when root public_html is protected with .htaccess password
- Redirect https://www.subdomain.domain.com is not redirecting to subdomain.website.com [closed]
- Can’t access htaccess [closed]
- Htaccess rewrite based on query string, not working [closed]
- Redirect all subdomains to root domain
- My WordPress install is not loading the admin styles
- Change root directory
- How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?
- Htaccess maintenance page rules that actually work with WordPress?
- How to allow only vpn access to dashboard on Bitnami WordPress by IP address restricting
- website is not loading home page (moving from one server to another server)
- Should I prevent access to .htaccess and wp-config.php files?
- Blocking wp-login in HTACCESS has also blocked password protected pages
- htaccess redirect to path
- Non-wordpress subdomain on Multisite Installation
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- Clicking PUBLISH Now Redirects to 404 PAGE NOT FOUND
- Unable to find ‘full-path’ to my 404.php file
- Rewrite rules and maintain URL
- Use htaccess to redirect wordpress non-existent page to homepage
- Subfolder renaming
- Targeting .htaccess file with file_put_contents
- Redirect Loop in Regex Moving to HTTPS
- .htaccess file changes disappear
- Need to edit htaccess while moving on WordPress
- WordPress login bug. Need an emergency solution
- How can I create a private site that is inaccessible from the outside?
- .htaccess and virtual host configuration for WP in its own directory
- 403 forbidden due to .htaccess?
- How to rename the WordPress wp-login.php running on IIS6?
- Where is the htaccess in wordpress.com hosting?
- rewrite rule on plugin activation
- Debug errors for “Destination directory for file streaming does not exist or is not writable”
- .htaccess seems to be required but I can not find it