Added regex for http and https. Refactoring.

Added regex for http and https. Refactoring. Added default document