Matias,

Thanks for the help. There is a hack for this, but it involves going
into the core of CI and WP -- and initial attempts have not been so
successful for me. I just had to exhaust the mod_rewrite approach
before trying to hack these applications again. Thanks.

On Jul 23, 9:50 am, Matias Gertel <[email protected]> wrote:
> Ok, now I'm re-reading your original post and a basic issue comes to  
> mind:
> Because both wordpress and codeigniter handle their redirects through  
> php and not apache, apache has no way of knowing if a particular URL  
> was handled correctly by either, so apache rules don't really count  
> here. This means you'll have to put some kind of hack in either of the  
> applications to send the request to the second app if the first app  
> couldn't handle the URL. Maybe you could make somehow your CI app a  
> WordPress plugin, or the other way round. Just a thought. I'm not too  
> familiar with WP or CI but the cheeky way of doing it is putting the  
> code in the error page controller.
>
> Matias Gertel
> Freelance Web Development & Coding
> e: [email protected]
> m: +64 21 288 8840
> p: +64 9 838 3367
>
> On 18/07/2009, at 2:09 PM, .Net2Php wrote:
>
> 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