Posts

Showing posts with the label html

.htaccess cook book, examples, and favourites

Image
All of My Favourite .HTAccess Examples Wildcard Domain Example #1 This will take your URL request, for anything.dummysite.com and redirect to dummysite.com/anything/index.html.  Combined with an CNAME Record for @ #### URL Rewrite Handler for Subdomains (by Randall Krause) #### RewriteCond %{HTTP_HOST} !^www\.dummysite\.com$ RewriteCond %{HTTP_HOST} ^(\w+)\.dummysite\.com$ RewriteCond %{REQUEST_URI}:%1 !^/([^/]+)/([^:]*):\1 RewriteRule ^(.*)$ /%1/$1 [QSA] Wildcard Domain Example #2 What this does is if user visits: test.example.com, it will show contents of file: example.com/user/profile.php?name=test. If someone goes to lol.example.com, it will show page: example.com/user/profile.php?name=lol but the URL will remain the same with the subdomain, like test.example.com and lol.example.com. RewriteCond %{HTTP_HOST} !^www\.example\.com RewriteCond %{HTTP_HOST} ([^.]+)\.example\.com [NC] RewriteRule ^/?$ /user/profile.php?name=%1 [L] Single Argument Example ## example:  http://dumm...

Top Ten Newfangled Concepts in HTML User Interface Design

My List of Newfangled Concepts in HTML User Interface Design 1) React Web Framework or React JS React is one of the newest kids on the block when it comes to user interface design and development for HTML pages. It was launched in May 2013. See the tutorial below. I am seeing more and more job ads calling for React programmers.  React is free to all. It even has a github where you can get more of it. https://reactjs.org/ https://reactjs.org/docs/add-react-to-a-website.html#add-react-in-one-minute https://github.com/facebook/react/ 2) Angular JS Web Framework Another new kid on the block.  Angular JS is now obsolete and Angular Web is the new defacto kid on the block.