[SOLVED] Modifying htaccess to speed things up
I was listening to a WP podcast today and they mentioned a copy and paste modification you can make to your .htaccess file that will speed up your WordPress site loads.
This suggestion is put forward by ghacks.net -- Speed Up Wordpress With Better Permalink Rewrite Code As I understand it, the way ghacks has organized the code reduces unnecessary "calls" and "checks" Simply, you paste the following into your.htaccess file replacing what's already there between "# BEGIN WordPress" and "# END WordPress". Code to be pasted: Code:
# BEGIN WordPress AND, while I'm at it -- in looking at one of my .htaccess files I find what looks like a duplication: Code:
1. <IfModule mod_rewrite.c> Question: Is the code in lines 1. - 7. accomplishing anything that won't be done by 8. - 16.? Can I just delete those lines? Jim PS _ I was going to ask WHICH .htaccess file in my site's directories was the "active" one, but I found where Paulae asked that LAST month and J'Dad already answered -- the system does work! |
Well I decided to try this. I added the footer query code and ran under FireFox with firebug and refreshed the page a number of times and got some numbers, then changed the htaccess and did it again.
I may have shaved off a couple tenth's of a second, but couldn't really tell. If you have a site that is extremely active and every millisecond counts, then I'd say put this in, if not what's a millisecond when displaying a page. |
Hey J'Dad: Thanks! I may try this on my test site which has really slow page load times. I've sort of decided that I need to build a fire under GoDaddy's butt, but the problem still might be the way I have things set and adjusting the .htaccess might help.
So! ...in the meantime, what about the apparent duplication of the lines: Code:
<IfModule mod_rewrite.c> Jim |
I'd remove the duplicates
|
..in for a penny ...
I took a deep breath and deleted the first set of lines of code -- Nos. 1 - 7. Everything seems fine -- no difference in load times. |
All times are GMT -6. The time now is 09:32 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.