www prefix does not work on nop 3.4

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 anos atrás
Hi this is Cem from Turkey,

We use nop 3.4 and we have some problem with www and non www issue,

I adjust the www prefix from admin but it is not force non www URL 's to www ones,


We use ssl sertificate and iis 7.5


It is very basic issue but google doesnt like dublicate pages,



Thanks for your helps,

Regards,
Cem
9 anos atrás
You need to add some url rewrites to your web.config e.g.

<rewrite>
      <rules>
         <rule name="http to www" patternSyntax="Wildcard" stopProcessing="true">
          <match url="*"/>
          <conditions>
            <add input="{HTTP_POST}" pattern="yourdomain.com"/>
          </conditions>
          <action type="Redirect" url="http://www.yourdomain.com/{R:0}"/>
        </rule>
</rules>
</rewrite>

Also make sure the rewrite module has been added to IIS.
9 anos atrás
Thank you Craig

I didnt add module before so code was not working.

Regards
Cem
9 anos atrás
Following rule works for me

<rewrite>
    <rules>
      <rule name="Redirect yourdomain.com to www" enabled="true" patternSyntax="ECMAScript" stopProcessing="false">
        <match url=".*" />
         <conditions>
            <add input="{HTTP_HOST}" pattern="^yourdomain.com$" />
          </conditions>
      <action type="Redirect" url="http://www.yourdomain.com/{R:0}" appendQueryString="true" redirectType="Permanent" />
     </rule>    
    </rules>
</rewrite>
8 anos atrás
Do you know if "www prefix" is working out of the box on Nop 3.7? I'm currently using 3.6 and I have also found out that this option is not working anymore...
8 anos atrás
silverio wrote:
Do you know if "www prefix" is working out of the box on Nop 3.7? I'm currently using 3.6 and I have also found out that this option is not working anymore...

Yes it is working in 3.7 .
8 anos atrás
anik1991 wrote:
Yes it is working in 3.7 .


Thanks for your reply.

Well, I have just update from Nop 3.6 to Nop 3.7 and this feature is still not working out of the box for me. It was working pretty well prior to Nop 3.6 without needing to modify the web.config file. Any idea?
7 anos atrás
This is still not working ... (nop 3.7)
7 anos atrás
shurub3l wrote:
This is still not working ... (nop 3.7)


===> http://www.strivingprogrammers.com/Blog/post/Lavish-Kumar/2098/How-to-manage-WWW-domain-prefix-in-nopCommerce/
7 anos atrás
OK. I think I figured this out. I had the same issue with forcing the www prefix not working. I went live with www.Aisra.com today and I was told that the owner didn't want Aisra.com to come up as well because of the 2 entries in Google (which I saw mentioned in one of the posts).  Not sure what I did to correct it but, it was either one of 2 things besides the setting to force the www prefix:

In Admin, Configuration, Store Edit: I changed the host Values from Aisra.com, www.Aisra.com to just www.Aisra.com.
In Admin, Configuration, General on the SEO Settings, I changed the default title from Aisra.com to www.Aisra.com.

Louis
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.