Mimiced URL rewriting from wordpress