• black4eternity

    (@black4eternity)


    Hi,

    My WP Multisite is pretty slow when someone is visiting it for the first time. It takes too long to resolve. I have tested it a lot of times on tools.pingdom.com.

    http://www.domain.com version loads extremely slow – http://bit.ly/GXHWMx
    domain.com version is loads faster – http://bit.ly/nf0nuU

    I feel that the problem is with the initial 301 redirect taking place.

    It will be of great help if someone can tell me if anything is wrong with my htaccess settings. It seems absurdly long :

    RewriteEngine On
    RewriteBase /

    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    #RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    #RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]

    This is followed by # BEGIN W3TC Page Cache core
    and the plugin settings follow ending with # END W3TC Browser Cache

    Also, I installed vtiger in a subfolder. http://bit.ly/GXAGyA
    Even that resolves slow. Since it is out of WP installation I feel the problem is with the htaccess.

    NOTE – Its a subfolder installation though I had Subdomains activated through the mapping plugin and have disables those.

    I have done a lot of research. Now all my hopes are that some genius on the forum can help me out 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • Axel13

    (@axel13)

    Did you test many plugins? The bigger the database, the slower your site will be, so it could help to get rid of database entries of plugins you once installed and deleted. Most plugins leave their settings in the database.

    Conflicting plugins can also be the cause.

    But… just checking your site, which looks great btw… It’s loading pretty quickly here. The redirect from //www.domain to //domain takes a moment longer, but imo not really anything to worry about. WordPress is a bit slow by origin.

    W3TC gives a speed score on the dashboard, is it a low score?

    Last thing(king)… You use Google Apps on this domain. In your Google Apps cpanel, under “domain settings > domain names” it’s possible that makes a redirect that conflicts with your installation, f.ex. if you order the redirect from //www.domain to //domain from your hosting cpanel. Perhaps you could check this.

    Thread Starter black4eternity

    (@black4eternity)

    Hi Axel,

    Thanks for the input. I did test a lot of plugins. And thanks to your idea I had moved to wp-supercache and have disabled w3tc. I removed the w3tc settings from my htaccess and speed has considerably improved.

    Doesn’t seem to be any issue on the domain name with Google Apps. The settings are good there. Also since now I am on wp-super cache cant see the score but the time on tools.pingdom.com has come down drastically.

    I will observe the pageload times over another 48 hours and keep you informed if the average time has improved.

    BTW… Thanks. Really pleased that you like the website 🙂

    Axel13

    (@axel13)

    Y’re welcome 🙂

    You don’t need W3TC to see that score, it’s the same as https://developers.google.com/pagespeed/

    The suggestions there have helped me quite a bit to speed up my own site. Mine is at 88 now, with room for improvement.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    W3TC works fine, it’s just a bear to sort out how to install right.

    If you don’t have eaccelerator or APC on your server, I wouldn’t ever consider using it, though. Those two make the plugin shine like the Rodger Young 🙂

    Thread Starter black4eternity

    (@black4eternity)

    Hey Axel

    My pagespeed score is 82. But then it is checking the code … I am not sure if it is taking the initial www to non-www redirect time into account. The time before the actual page ( cached ) begins loading.

    @ipstenu

    I was hoping you might reply on this thread 🙂 I will check up about the eaccelarator and APC. I disabled W3TC and removed the additional W3TC code from my htaccess. The website seems to be loading faster.
    Also, look at the htaccess code do you think there is anything I could do to make the 301 redirect faster ?
    Looking at tools.pingdom.com stats it seems that redirect time varies a lot. I have tried it at a gap of 3-4 hours.
    Rest of the page load seems to be fast.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Rule one of .htaccess: WordPress goes at the bottom. 😉

    So in mine it’s

    # Ipstenu's tinfoil hat stuff
    
    # hotlink blocking
    
    # redirects for old pages from 1990
    
    # w3tc sections
    
    # WordPress

    That way, the LAST thing it does is loop through my WP index.php, which doesn’t so much speed UP as prevent from slowing down.

    This looks like the standard subfolder htaccess for WordPress… Nothing wrong with it.

    RewriteEngine On
    RewriteBase /
    
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    #RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multisite htaccess issues slow redirect … Please help’ is closed to new replies.