Matias, I tried your suggestion, but it still didn't work.
- CodeIgniter still works fine - WordPress pages still accessible with /cms/ in the URL - WordPress pages without /cms/ in the URL results in CodeIgniter 404 page Here's my .htaccess file: Options -Indexes Options +FollowSymLinks Options -MultiViews DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / #----------------------------------------------------------------------------- # Integrate WordPress per # http://groups.google.com/group/nzphpug/browse_thread/thread/e35d10e39ec0d95?hl=en #----------------------------------------------------------------------------- RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^cms/(.*)$ /cms/index.php [L,QSA] #RewriteRule ^cms/(.*)$ /cms/index.php/$1 [L,QSA] #----------------------------------------------------------------------------- # CodeIgniter #----------------------------------------------------------------------------- RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA] #RewriteRule ^(.*)$ /index.php/$1 [NC,L,QSA] #----------------------------------------------------------------------------- # Secure .svn directories #----------------------------------------------------------------------------- RewriteRule (\.svn)/(.*?) - [F,L] Did I miss something? On Jul 21, 9:59 am, Matias Gertel <[email protected]> wrote: > Try this on your top folder, and remove the .htaccess from the /cms > folder: > > RewriteEngine on > RewriteBase / > > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^cms/(.*)$ /cms/index.php [L,QSA] > # Or maybe like this: > #RewriteRule ^cms/(.*)$ /cms/index.php/$1 [L,QSA] > > #Now the code igniter part: > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ /index.php [L,QSA] > > Matias Gertel > Freelance Web Development & Coding > e: [email protected] > m: +64 21 288 8840 > p: +64 9 838 3367 > > On 20/07/2009, at 11:08 PM, .Net2Php wrote: > > Yes, I caught the typo. The problems I am having as sans-typo. > > On Jul 20, 8:25 pm, "Karl" <[email protected]> wrote: > > > Typo in Berend's code... replace "cmd" with "cms"... > > > *********** REPLY SEPARATOR *********** > > > On 20/07/2009 at 12:44 a.m. .Net2Php wrote: > > >> Barend, > > >> Thanks for the suggestion. It works -- kindda. > > >> When I put it in my root .htaccess, my CodeIgniter application > >> stopped > >> working. When I tried to put it in .htaccess of the /cms/ folder, I > >> was getting server errors. There must be a conflict somewhere??? > > >> On Jul 18, 4:52 pm, Berend de Boer <[email protected]> wrote: > >>>>>>>> "Net2Php" == Net2Php <[email protected]> writes: > > >>> Net2Php> I have a CodeIgniter application with WP installed in > >>> Net2Php> /cms/ folder (under root). I am able to access WP pages > >>> Net2Php> provided /cms/ is in the URL. However, I want to > >>> Net2Php> eliminate the /cms/ part of the URL. So: > > >>> Net2Php> RewriteRule ^cms/(.*)$ $1 [NC,L] > > >>> Wouldn't it be the other way around? > > >>> RewriteRule ^(.*)$ /cmd/$1 [NC,L] > > >>> -- > >>> Cheers, > > >>> Berend de Boer > > > --- > > Karl > > Senior Account Managerwww.KIWIreviews.co.nz... Where Your Views Count > > Please consider the environment before printing this email. --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
