Hi Conor, great mod.
Got a quick question though that i've failed to find an answer for. Having some minor issues with the URI rewriting, not least of which because i'm using lightttpd and not apache. Anyway i believe i have a working solution to that which in case anyone else finds useful :-
Code:
url.rewrite-once = (
"^/(.*index.php.*|.*\.[a-z]{2,5}(\?.*)?$|editors/.*|imagezoom/.*|js/.*|feeds/.*|bmz_cache/.*|admin/.*|images/.*)" => "$1",
"^/.*(\?.*)$" => "index.php$1",
"^/.*$" => "index.php"
)
thats my first pass at getting it working, i would prefer if i could use a $HTTP["url"] =~ conditional instead of the dummy match and a rewrite-once but that did not seem to work on my first go.
Anyway in testing this i found that the page for the pay pal ipn callbacks was not working it is /ipn_main_handler.php, looking at the logs its always called with query parameters hence my slightly modified version of the regexs from your instructions.
So to get to the point, i'm wondering if the example regexes for the .htaccess rewrites would be better rewritten
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
to
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}(\?.*)?$ [NC]
to catch any non *.xxxxx pages other than index that get called with a query paramater. Any one see any problems with this. It should ignore product pages with SEO rewriting on even if they have a query param as they don't end in .php etc
Thanks
Robin
Bookmarks