mod_rewrite help! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: mod_rewrite help! (/showthread.php?tid=20461) |
mod_rewrite help! - El Forum - 07-10-2009 [eluser]CodeIgniterNewbie[/eluser] I'm trying to run WordPress (WP) alongside my CI application. WP is currently installed in /cms/ directory. So, to access WP controlled pages, the /cms/ is part of the URL. For example: www.domain.com/cms/privacy-policy/. This works fine, but I don't want to display the /cms/ as part of the URL. So, I am trying to use mod_rewrite to remove it from the URL. My attempts are not working. Here's what I think my rewrite rule should be (placed immediately after RewriteBase /): Code: RewriteRule ^cms/(.*)$ $1 [NC,L] It's not working. In the /cms/ directory, there is an .htaccess file with these: Code: <IfModule mod_rewrite.c> My guess is that they are somehow conflicting. I'm not .htaccess expert. Any ideas what I am doing wrong? Thanks. |