Articles
.htaccess is a special Apache file that tells your website how to function. You can edit the...
301 Permanent redirects for parked domain namesIf you have several domain names parked/pointed at your site it is a good idea to create...
Block Bad robots, spiders, crawlers and harvestersThere are lots of examples across the internet that use ModRewrite. We will provide such an...
Can you provide a custom package for me?Yes, most definitely. Simply open up a helpdesk ticket in the Sales department or contact us...
Change PHP variables using .htaccessIf you need to change the way your PHP is working you can do that using .htaccess.Please, note...
Change default directory pageMost probably you have been wondering how the Webserver decides which page from your site to...
Common Apache mod_rewrite and examplesI am going to give you some common dot-htaccess codes our customers love. Please remember we do...
Force SSL/https using .htaccess and mod_rewriteSometimes you may need to make sure that the user is browsing your site over a secure...
Force www vs non-www to avoid duplicate content on GoogleRecently, it has been talked a lot about Google and duplicate content as well as Google Canonical...
How to add Mime-Types using .htaccessIn the event you are hosting elsewhere, and your web hosting account is not configured to...
How to block users from accessing your site based on their IP addressBlocking users by IP address is pretty simple with .htaccess.So here it is the example:Order...
How to prevent or allow directory listingHaving a listable directories on your site sometimes is useful. However, some times it can be...
Make PHP work in your HTML files with .htacessBy default most web servers across the internet are configured to treat as PHP files only...
Redirect URLs using .htaccessSometimes you need to redirect some URL and/or page on your site to another one.The feature is...
Using .htaccess for password protecting your foldersIf you need to have certain areas (folders or files) of your web site protected you can use...
www and non-www .htaccess rewrite rulesHere's the complete library for use in .htaccess: # Redirect if NOT www.example.com (exactly) to...