Now using the standard cPanel-created Apache .htaccess redirect, but it's taking a full 2 seconds to go from ´example.com´ to ´www.example.com´.

Is there a faster method? Or should I let go of the redirect as this is purely for cosmetic/uniformity/branding?

  • 3
    Show the .htaccess file it created so we can review it – John Conde Apr 22 '16 at 20:29
  • The cPanel generated .htaccess redirect is often very "ugly" and can sometimes not work as intended. However, if this is "working" but taking "a full 2 seconds" then my guess is that something else is going on? But as John suggests, we'll need to see the complete .htaccess file. There's not really any such thing as "the fastest .htaccess redirect". – MrWhite Apr 22 '16 at 23:13
  • I have now taken another look. I had thought it was .htaccess, but somewhere along the course prior to this testing, the redirect was removed, so it was Wordpress doing the redirecting. – Damian Apr 23 '16 at 10:32
  • Now re-added with cPanel, it's taking .1-.3s to redirect to www. and about .8-1.5s to begin loading resources at www. – Damian Apr 23 '16 at 10:38
  • Currently we have this ` # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ %{HTTP_HOST}/$1 [R=301,L] RewriteRule ^index\.php$ - [L] </IfModule> ` But it's not working as intended. It's redirecting the base domain to www correctly (our blog). But not redirecting the forum to www. (mysite.com/forum going straight to mysite.com/forum instead of www.mysite.com/forum) – Damian Apr 23 '16 at 10:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.