PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

.htaccess Essential Tricks For Blog/Website Performance – Guide

htaccess-tricks

.htaccess file is a magic file. You can change the way your website works by using it. I have been reading a lot about .htaccess files. Perticularly .htaccess is very useful in shared web hosting environment where the users have no direct access to their servers or they want to implement some restrictions/security to their files. I will include here some very essential and useful .htaccess tricks. I have used some of these tricks and more to secure my websites according to my web server’s environment and to optimize speed/performance of my websites. Websites with heavy traffic, Digg traffic, Stumble upon or slashdot traffic will need to be optimized via many ways and .htaccess can help a lot.

Read the rest of this entry »

Tags: , , , ,
Posted in: Tricks, Useful Scripts, htaccess
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

How to Include Specific File In WordPress Blog Template

Considering the fact that you have some file placed in your current theme folder, you can call it via following code with or without condition. If you plan to call some file right from root folder of your WordPress blog then just remove template path area of code.

Read the rest of this entry »

Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

How To Display Some Content at Just Home Page and Single Post of Blog

Recently I wanted to display little about section me at my blog but just at home page and single post under sidebar. So how we can tell that we are at home page or at single post in case of WordPress Blog? Here is the code:

Read the rest of this entry »

Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Display RSS Feed From Any Blog on Your WordPress Blog

Ever wanted to display any rss feed from any other blog on your WordPress blog? WordPress have a function, called wp_rss(), which is a built-in rss reader.

Add the following code where you want the rss to be displayed at your blog i.e. sidebar or footer:

Read the rest of this entry »

Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Provide RSS Feed for Each Post and Comment at Your WordPress Blog

If a post gets lots of comment, it can be hard for your readers to stay on the conversation. WordPress blogging engine have a built-in function for providing rss feed for the comments of a specific post.

Add RSS Feed Link For Comments on Each Post

In order to provide a rss feed for the comments of a specific post, you just have to call the comment_rss_link() function like below:

Read the rest of this entry »

Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment


Related Posts




  Subscribe Via RSS
  Subscribe Via Email