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.

?ACT= rewrites

August 31, 2010 7:17pm

Subscribe [2]
  • #1 / Aug 31, 2010 7:17pm

    I’m removing index.php from URLs using the exclude method and would like to know how to keep the ?ACT= query strings working. As you may or may not know, they only work at

    <a href="http://www.mysite.com/index.php?ACT=9">http://www.mysite.com/index.php?ACT=9</a>
    and not
    <a href="http://www.mysite.com/?ACT=9">http://www.mysite.com/?ACT=9</a>

    I basically need a way to take all those query string URLs and put the index.php back into them. Any thoughts?

  • #2 / Sep 01, 2010 7:55am

    Ingmar

    29245 posts

    Just don’t apply the rewriting rule to those URLs. The Wiki has this example:

    # Fix queries for actions, urls and css in EE
    RewriteCond %{QUERY_STRING} ^(ACT=.*)$ [NC,OR]
    RewriteCond %{QUERY_STRING} ^(URL=.*)$ [NC,OR]
    RewriteCond %{QUERY_STRING} ^(CSS=.*)$ [NC]   
    RewriteRule ^(.*)$ /index.php\?&%{QUERY_STRING} [L]
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases