Monthly Archives: September 2014

Recursive Function

Example

http://www.lornajane.net/posts/2012/php-recursive-function-example-factorial-numbers

Get leaf nodes:

 

Supersized

 

Detect Device

https://github.com/serbanghita/Mobile-Detect

 

GEOIP – Get Country by IP

Reference:

Response Tag Example:

 

.htaccess

Online Tester

https://htaccess.madewithlove.be/

Document

  1. https://lesca.me/archives/htaccess-rewrite.html
  2. https://lesca.me/archives/htaccess-appendix.html#htaccess_regex

For CodeIgniter:

Note! “?” after “index.php” is must!!

https://ellislab.com/forums/viewthread/234634/

Rewrite rule for subfolders:

http://case.wikirex.com/vic/luna

Reference:

Multiple Conditions:

Reference:

  1. https://www.stormconsultancy.co.uk/blog/development/code-snippets/redirect-entire-site-with-htaccess-but-exclude-one-or-more-directories/
  2. https://mediatemple.net/community/products/dv/204643270/using-htaccess-rewrite-rules
  3. http://stackoverflow.com/questions/18964045/htaccess-redirect-all-domain-except-two-files

Redirect entire domain to another URL:

Redirect visitors by IP address