If you want to redirect all non-www requests to your site to the www version, all you need to do is add the following code to your .htaccess file:
Tag Archives: .htaccess
increase php upload limit
.htaccess
htaccess Redirect to Maintenance Page
Redirecting visitors to a maintenance page or other temporary page is an essential tool to have in your tool belt. Using HTAccess, redirecting visitors to a temporary maintenance page is simple and effective. All you need to redirect your visitors is the following code placed in your site’s root HTAccess:
.htaccess speed up site
Increase your page load times and save bandwidth with easy and really effective methods using apache htaccess directives. This module controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. The expiration date can set to be relative to either the time the source file …
.htaccess hotlink protection
Hotlink protection of images Use this generator to create a .htaccess file for hotlink protection of your images and pictures. Hotlink protection can save you lots of bandwidth by preventing other sites from displaying your images.
create subdomains with .htaccess
Dynamic subdomains using htaccess This will render abcd.yourwebsite.com into yourwebsite.com/wor_out.php?url=abc