I have this htaccess code. What I want to accomplish is be able to redirect requests to /about and /learn to the contents of the /wordpress folder without changing the address bar
#Rewrite engine rules
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|import\.php|geocode\.php|robots\.txt|BingSiteAuth\.xml|y_key_88c0d00f4917d584\.html|favicon\.ico|images|img|uploads|css|js|topics|wordpress)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^about$ /wordpress [L]
RewriteRule ^learn$ /wordpress [L]
with the following structure with /content as the web root:
/content
/wordpress
index.php (the wordpress index.php)
.htaccess (the one we are editing)
index.php (the codeigniter index.php)
However, the htacess code does not work.
It turns out that the address bar is changing if you redirect to the wordpress root. So what I did is create a “learn” and “about” page in WordPress so that they go /wordpress/learn and /wordpress/about.
Put this above your rules then (just below the RewriteEngine and RewriteBase declarations):
requests to /about and /learn will then be redirected to /wordpress/about and /wordpress/learn respectively without changing address bars.
NOTE: This appears to have problems in Chrome.