Redirect apache to your wordpress install

We can redirect our ‘localhost’ site to ‘localhost/blog’ on the server using the Apache Redirect Directive. First, create/edit the .htaccess file in your web root directory. This is usually “/var/www/html”. sudo pico /var/www/html/.htaccess Add this line, replacing ‘example’ with your domain name and ‘blog’ with the directory you want to redirect to:Redirect / http://example.com/blog Now,… Continue reading Redirect apache to your wordpress install