Nice URLS PHP .htaccess
Posted by Alius Designs on Dec 13, 2011 in .htaccess, Web Development | 0 comments
Nice clean URLs: .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] # http://domain/about -> http://domain/about.php -------------------------------------------------- .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule...
Read MoreSpeed up your site with .htaccess caching
Posted by Alius Designs on Dec 13, 2011 in Blog | 0 comments
One of the most useful snippets that we’ve found recently is the one below. By using some simple .htaccess file cahing, you can dramatically increase your website speed. This snippet you should always have on your toolbox! # 1 YEAR Header set Cache-Control "max-age=29030400, public" # 1 WEEK Header set Cache-Control "max-age=604800, public" # 2 DAYS Header...
Read MoreUsing Custom Fields
Posted by Alius Designs on Oct 15, 2011 in Blog, Wordpress | 0 comments
While working on a project for a customer, needed to use custom fields, came across a few useful snippets: Dump out all custom fields as a list <?php the_meta(); ?> Display value of one specific custom field “companyName” would be ID value of custom field <?php echo get_post_meta($post->ID, 'companyName', true); ?> Display...
Read MoreHow to Run a Loop Outside of WordPress?
Posted by Alius Designs on Oct 15, 2011 in Blog, Wordpress | 0 comments
Sample below can be used on any PHP file even outside your WordPress installation. Include Basic WordPress Functions <?php define('WP_USE_THEMES', false); require('/server/path/to/your/wordpress/site/wp-blog-header.php'); query_posts('showposts=1'); ?> Run Loop <?php while (have_posts()): the_post(); ?> <h2><?php the_title();...
Read MoreWeb Design Simplicity in 2010 – UX/UI Design
Posted by Alius Designs on Jul 5, 2010 in Blog | 0 comments
The new year has began and has gives us a new page to start off with – to improve ourselves. Looking back at previous years of designing, I see that we as designers gave in to our clients’ requests – cluttering their website with different features that no one needs and thus duplicating content sometimes. In 2009,...
Read MoreDoes your business need a Facebook page? YES and NOW!
Posted by Alius Designs on Jul 5, 2010 in Blog | 0 comments
Once Facebook announced the Fan Pages, this feature received a lot of mixed reviews – some people were excited to see a new advertising platform and other people just hated it – Facebook was starting to turn into MySpace. I’ve read a number of articles around the net on benefits of having a Facebook Fan Page for your business and here are a...
Read More