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.
Protect Wordpress Login with Apache htpasswd and htaccess | Wordpress login pages left public are a target for brute force attacks or other vulnerabilities. I’ll show you how to keep the Wordpress login protected with Apache htpasswd and htaccess!
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
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
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: