Diffrent looks for www and without www

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
hello

I am using the the website devlopment nop commerce

When I am giving the url with www from the admin side  then it will work  perfectly for a user when the admin login with www.

But when the admin login with out the www then it  would not work in Monzilafirefox and google chrome while it will be working fine IE.

Please help me out on this solution.

thanks
12 years ago
In your web.config file under system.Webserver you want to add this following.

Note: you need to update the URL address to your website and restart IIS for that website for this to take affect.

      <rewrite>
          <rules>
              <rule name="Redirect to WWW" stopProcessing="true">
                  <match url=".*" />
                  <conditions>
                      <add input="{HTTP_HOST}" pattern="^yourwebsite.com$" />
                  </conditions>
                  <action type="Redirect" url="http://www.yourwebsite.com/{R:0}" redirectType="Permanent" />
              </rule>
          </rules>
      </rewrite>


This will always redirect without www to the www version and remember what page or querystring parameters were passed as well. This also creates truly canonical URL's and stop duplicate content penalties from Google SEO.

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