Forum Moderators: phranque
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L,QSA]
However, after installing Wordpress I find it is caught in a redirect loop because of this. SO how can I exclude the /wordpress directory from the rewrite conditions above?
[edited by: jdMorgan at 4:21 pm (utc) on April 9, 2009]
[edit reason] No URLs. Please see Terms of Service. [/edit]
I don't use WP, but I suspect a simple WP configuration error: example.com was specified when www.example.com should have been used.
Jim