Is it possible to have any missing pages(404's) redirected to the search(omega) ?
So if someone comes to my site with it would result in 'foo_was_here' being passed as a search parameter to omega ? --Mick


I use nginx instead of apache.
Just add the following to the server block outside of any location block in nginx.conf
You must also make sure you have setup and enabled the search plugin(omega)

error_page  404              /ikiwiki.cgi?P=$uri;

My full nginx.conf

server {
        listen  [::]:80; #IPv6 capable
        access_log  /var/log/nginx/  main;
        error_log  /var/log/nginx/ warn;
        error_page  404              /ikiwiki.cgi?P=$uri;

location / {
                root    /home/lunix/public_html/lunix;
                index  index.html index.htm;

location ~ ikiwiki\.cgi$ {
                root    /home/lunix/public_html/lunix;
                include /etc/nginx/fastcgi_params.cgi;

                fastcgi_param  SCRIPT_FILENAME  /home/lunix/public_html/lunix$fastcgi_script_name;  # same path as above