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.

How to link/redirect using htaccess on EE 2?

December 29, 2010 3:40pm

Subscribe [1]
  • #1 / Dec 29, 2010 3:40pm

    antiuser

    44 posts

    On EE 1.x I was used to using a rule like this for removing index.php from urls:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !\.(gif|jpe?g|png|hl_admin|images|themes)$ [NC]
    RewriteRule ^(.*)$ /index.php?$1 [L]
    </IfModule>

    However, this isn’t working on EE2. It seems that this time I actually *have* to use the template group name and use ?css= for it to bring up the page properly. The thing is, this is going to break when I start using the Structure module since it won’t refer to template groups. How should I do this on EE 2? I’ve been googling but haven’t found anything and I’m up against a deadline…

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

ExpressionEngine News!

#eecms, #events, #releases