I've this htaccess code. What I wish to accomplish is have the ability to redirect demands to /about and /learn how to the items in the /wordpress folder without altering 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]
using the following structure with /content because 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 doesn't work.
Try moving your particular rules above your wildcard rule.
RewriteRule ^(.*)$ /index.php/$1 [L]
Before your particular rules, this rule could be triggered first. For your particular rules (about/learn), you might like to redirect to /wordpress/index.php
Keep in mind when your wordpress folder includes a .htaccess file that certain is going to be used rather than your CodeIgniter/Root one, nevertheless it does not appear to possess one via your file listing.
It works out the address bar is altering should you redirect towards the wordpress root. What exactly Used to do is produce a "learn" and "about" page in Wordpress to ensure that they're going /wordpress/learn and /wordpress/about.
Put this above your rules then (just beneath the RewriteEngine and RewriteBase terms):
RewriteRule ^about/$ /wordpress/$1 [L] RewriteRule ^learn/$ /wordpress/$1 [L]
demands to /about and /learn will be rerouted to /wordpress/about and /wordpress/learn correspondingly without altering address bars.
NOTE: This seems to possess problems in Chrome.