func GetRelativeURL(r *http.Request, orig, repl string) string {
	i := strings.Index(r.URL.Path, orig)
	if i < 0 {
		return GetCurrentBaseURL(r) + repl
	}
	return GetCurrentBaseURL(r) + r.URL.Path[:i] + repl
}
GetRelativeURL returns relative path to current URL.
package utils
import (
	"net/http"
	"strings"
)
func GetBaseURL(r *http.Request, s string) (string, string) {
	for _, p := range strings.Split(s, ",") {
		i := strings.Index(r.URL.Path, p)
		if i >= 0 {
			return GetCurrentBaseURL(r), r.URL.Path[:i]
		}
	}
	return GetCurrentBaseURL(r), r.URL.Path
}