Install wordpress
Multi Sites WordPress on ec2 ubuntu 12
10/08/2016
Install wordpress on amazon lightsail
Install wordpress on amazon lightsail
04/12/2016
Show all

WordPress SEO Improvements

Install wordpress

Check SEO website online:

https://www.yanivp.net//developers.google.com/speed/pagespeed/insights/
https://www.yanivp.net//gtmetrix.com
https://www.yanivp.net//tools.pingdom.com/

Add website to Google Search Console:

https://www.yanivp.net//www.google.com/webmasters/tools/home?hl=en

Install mod_headers

sudo a2enmod headers
sudo service apache2 restart

Reference: http://stackoverflow.com/questions/10185717/internal-server-error-htaccess

Fix Optimize images & CSS & Cache & SEO Plugins:

Optimize images: WP Smush  only for 50 images free
Minify JavaScript: Autoptimize
Remove Query Strings From Static Resources: Remove Query Strings From Static Resources
Yoast SEO: Yoast SEO
WP Super Cache: WP Super Cache

Add to .htaccess

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^aws/?$ /wp-login.php [QSA,L]
RewriteRule ^aws/register/?$ /wp-login.php?action=register [QSA,L]
RewriteRule ^aws/lostpassword/?$ /wp-login.php?action=lostpassword [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
AddDefaultCharset utf-8
RewriteRule ^([0-9-]+)/keyword_show.html$ keyword_show.php?keyword_id=$1
RewriteRule ^page_(.*).html$  page.php?url=$1
RewriteRule ^([0-9-]+)/(.*)/(.*)/(.*).html$ $2.php?advertisement_cat=$1&id=$3&pagenumber=$4
RewriteRule ^([0-9-]+)/(.*)/(.*).html$ $2.php?advertisement_cat=$1&pagenumber=$3
RewriteRule ^([0-9-]+)/(.*).html$ $2.php?advertisement_cat=$1
# cache images and flash content for one month
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=2592000"

</FilesMatch>

# cache text, css, and javascript files for one month
<FilesMatch ".(js|css|pdf|txt)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
</IfModule>

Leave a Reply

Your email address will not be published. Required fields are marked *