mod_rewrite help! |
[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. |
Welcome Guest, Not a member yet? Register Sign In |