I've got a site created using CodeIgniter having a WordPress site at /blog.

Say I produce a page in WordPress that may be seen at /blog/my-page.

Can you really rewrite the URL with .htaccess to get rid of the blog area of the URL? And So I could enter my website url /my-page to see the page?

from the top my mind..

#start the engine
RewriteEngine on

#requests to www.yourpage.com/anything/
RewriteCond %{REQUEST_URI} ^/([^/]+)/?$ [NC]

#are sent to www.yourpage.com/blog/anything/
RewriteRule .* /blog/%1 [L]

The rule below will rewrite (internal redirect) /my-page to /blog/my-page:

RewriteEngine On
RewriteBase /

RewriteRule ^my-page$ /blog/my-page [NC,L]
RewriteRule ^another-page$ /blog/another-page [NC,L]
  1. This must be put into .htaccess in website root folder.

  2. If you have some rewrite rules there then that one have to be put into appropriate place as order of rules matters.

  3. You'll still may require configure WordPress a little therefore it knows this URL is perfect for him to process (WordPress can always begin to see the original URL). I haven't labored with WordPress much to inform if this is needed (and just how to get it done if it's) -- but take a look at Permalinks configurations.