made generateURL() work regardless of rewrite status, gen will now use the current file as a base if rewrites are disabled