ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Running other web software in a subdirectory

March 20, 2012 9:07pm

Subscribe [4]
  • #1 / Mar 20, 2012 9:07pm

    BA Creative

    3 posts

    Hi All,

    I’d like to use EE to run the homepage, front-end and content pages of a website in combination with a standalone shopping cart software (ISC). Is it possible to use EE as a front controller, but to exclude /shop/?

    I’m hoping it’s possible with rewrites to make sure EE ignores /shop/ and lets the software in this directory work independently.

  • #2 / Mar 20, 2012 11:10pm

    Enviromed

    375 posts

  • #3 / Mar 20, 2012 11:21pm

    BA Creative

    3 posts

    Thanks for your fast reply, but what about if it only uses mod_rewrite?

    Would this be possible, I think so…?

  • #4 / Mar 21, 2012 1:43am

    the3mus1can

    426 posts

    Can you post what you have in your .htaccess file now?

  • #5 / Mar 21, 2012 1:55am

    BA Creative

    3 posts

    So I’d need it to ignore anything in “/shop/” but rewrite everything else as shown:

    RewriteEngine On
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ /index.php/$1 [L]

    Within “/shop/” I’d be running Interspire Shopping Cart with its own .htaccess at this level. I just need someone to push me in the right direction.

  • #6 / Mar 21, 2012 3:13pm

    Man With A Peg

    124 posts

    add:

    RewriteCond $1 !^shop

    somewhere between RewriteEngine and RewriteRule. You can tack [NC] onto the end of this line if you want to service /shop/ and /SHop/ and /shoP/ and…

  • #7 / Mar 21, 2012 7:29pm

    BA Creative

    3 posts

    Thanks so much for your help!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases