formats

How-To Redirect All Directories of oldsite to newsite in htaccess

Published on April 30, 2013, by + in sysadmin.

How-To Redirect All Directories of oldsite to newsite in htaccess | Here is a quick tip to help redirect an existing old domain url structure to a new domain. Scenario is two domains are both pointed at same server and web root. Need to substitute old domain for new domain and keep all existing URL structure in tack.

formats

Speed Up Website in Apache by Enabling Compression and Leveraging Browser Caching

Speed Up Website in Apache by Enabling Compression and Leveraging Browser Caching | Google has a cool website to inspect your website for speed improvements. Two of the main areas are leveraging browser caching as well as enabling compression for your website. I’ll show you how to set this up in Apache! Firstly, here is that website. Put in your site for a quick review: https://developers.google.com/speed/pagespeed/insights If you

formats

How to Redirect a URL in a Virtual Host

How to Redirect a URL in a Virtual Host | Redirecting a URL in a virtual host is a snap! I’ll show you how. Scenario: you have a server that receives example.com but you want that to redirect to example2.com. First you will want to add this to your /etc/apache2/ports.conf (Debian or Ubuntu) or /etc/httpd/conf/httpd.conf (Red Hat or CentOS) if you have not already: NameVirtualHost

formats

Prevent Hotlinking with htaccess

Published on May 27, 2011, by + in linux, sysadmin.

Prevent Hotlinking with htaccess | Hotlinking is the use of another person’s hosted image embedded on a different site without permission. I’ll show you how to prevent hotlinking with htaccess! Place the following in an .htaccess file on your web server to prevent hotlinking of images but however allow google, bing, and yahoo image searches access. Change the first entry

formats

Redirect www to non-www

Published on July 25, 2010, by + in sysadmin.

Redirect www to non-www | How can I redirect my website to go from http://www.example.com to just plain ol’ http://example.com? Use the following rewrite blurb where appropriate for your website. An easy thing to do is to add this to your .htaccess file in your website’s root directory:

Home Posts tagged "htaccess"