Some are my pages in google are indexed as: http://www.mydomain.com/page/ AND http://mydomain.com/page/ I tried to do a force redirect in order to avoid duplicate content using this .htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC] RewriteRule ^(.*)$ http://mydomain.com/$1 [L,R=301] # END WordPress The problem is that have both rewrite rules (SEO rewrite & force www to non-www) causes a page such as mydomain.com/page/ to redirect to mydomain.com/index.php Is there a way to have the redirects not interfere with each other?
RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.mydomain\.com [NC] RewriteRule ^(.*)$ http://mydomain.com/$1 [L,R=301] # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
I've been having a problem with this plugin. It works great; I check it a few hours later and it has stopped working. I am also running wp-cache manager. When I go into the cache manager and clear the cached pages it starts working again for a while anyway. Rinse and repeat. Can someone enlighten me? Thanks
If I disable the caching, clear the cached pages, and then deactivate the plugin my problem is fixed. I really don't see a big performance drop on the site with wp-cache off so, for now I am just going to leave it. I'll have to look into why these plugins conflict with each other later. If anyone has a work around please post. thanks.
it's gonna take some to clear the google cache so don't worry about it. Just use the VIMF's code at #5. Though now totally necessary here but if you want you can use no-www wordpress plugin.
I have been running for a while and I can't see a performance hit with removing wp-cache. (Just eyeballing it anyway.) I opted to include the www. Anyway, thanks for your response. I noted from the links on your signature line that you are not redirecting to the non-WWW site with your domains either. thanks again...