I have my wordpress in a sub-folder on my domain with a .htacess file on the root which does all the redirecting.
i want to do a redirect, the site IP to WWW. which works for the main site on the root but not for the sub-folder which is WordPress.
iv got a feeling wordpress is overwriting this some where?
this is what iv used in root .htaccess
RewriteCond %{HTTP_HOST} ^IP.IP.IP.IP [NC]
RewriteRule ^(.*)$ http://www.NAME.com/$1 [R=301,L]
but this does not work for the wordpress sub-folder
iv even tried to copy this into the .htaccess file in the WP root folder but still not work
It is because in your WordPress wp-admin panel there is a setting:
and
Make sure to update them to
http://www.domain.com/subfolderthen it will start working.UPDATE (Based on your comments)
Use following .htaccess inside WP install folder ‘/blog’