I have a CodeIgniter application with WP installed in /cms/ folder
(under root). I am able to access WP pages provided /cms/ is in the
URL. However, I want to eliminate the /cms/ part of the URL. So:

Instead of: www.domain.com/cms/my-article-in-wp/
I want: www.domain.com/my-article-in-wp/

I assume I need to do something with the .htaccess file in /cms.
Currently, here is what I have in the .htaccess of the /cms/ folder:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /cms/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /cms/index.php [L]
</IfModule>

The root .htaccess has the standard CodeIgniter .htaccess file. I
tried putting the following in the root .htaccess, but it didn't work:

RewriteRule ^cms/(.*)$ $1 [NC,L]

I guess there might be some sort of conflict??? Anyway, if anyone can
point me in the right direction, it would be much appreciated.

Thanks,
KIP

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to