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.
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