我如何能实现动态的子域codeigniter与.htaccess?
subdomain .htaccess mod-rewrite wildcard-subdomain codeigniter-2
-- generates names in the following order
-- a, b, c ... z, aa, ba, ca, ... za, ab, bb, cb ...
nextName :: String -> String
nextName [] = "a"
nextName (x:xs) = if x == 'z' then 'a' : nextName xs else succ x : xs
-- verify if the number of names generated is as expected.
countNames :: String -> String -> Int
countNames start end = loop 1 start
where
loop acc next =
if next …Run Code Online (Sandbox Code Playgroud)