update targz destination directory
Added apache rewrite to avoid php when possible