Firstly., apologies for adding this post elsewhere in the wrong section.. maybe an administrator could delete the other post? or move it here?
I have a Windows PLESK II server where my website is hosted and I would like a 301 redirect for all of the website urls with NON www to all go to WITH www - currently they are both displaying...
ie.. http
://example.com to redirect to http
://www.example.com
I have read elsewhere that if the following is added to the .htaccess file then it should work but it doesn't...
RewriteEngine on
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
I have been told that the servre has a ISAPI Redirect in place...
I do also have the following in the htaccess file..
# 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 guess the above was added for ther wordpress blog to work ok (this is vital)
Can anyone help?
[edited by: Ocean10000 at 2:37 am (utc) on Oct 30, 2011]
[edit reason] Broke Example Links. [/edit]