Look at this shot

Monday, November 02, 2009

From The Sting:

sting-combined 

Now look at my nerdiness!

I want to mention that although the content of this post took me 5 minutes to put together, Expression Engine decided to be a huge jerk about a week ago and stop redirecting certain URL strings, which made posting this take 3 hours. I still haven’t figured it out, which is especially frustrating since domanico.net seems to redirecting URL’s fine. (By redirecting fine I mean a URL like http://domanico.net?URL=http://google.com works fine.)

It turned from minor annoyance into a bigger problem when it prevented Windows Live Writer from working properly.

Digging around I found that adding the following line to my htaccess file:

RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]

fixes Live Writer and adding this fixes my URL redirect problem:

RewriteCond %{QUERY_STRING} !^(URL=.*)$ [NC]

So that my redirect block ends up looking like this:

RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
RewriteCond %{QUERY_STRING} !^(URL=.*)$ [NC]
RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/({ee:template_groups}|members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php?/$1 [L]

I’m still trying to get my admin panel redirect to work properly. I’ll update when I do.