SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I fix my non-www to www url

    I am trying to fixing the non-www to www url. My site is on Magento. Anybody knows how can I fix my non-www to www url.

    Thanks

  2. #2
    SitePoint Member
    Join Date
    Oct 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also be sure to check your Magento configuration.

    Logged on to admin -> System Configuration -> Web

    Check Unsecure and Secure paths

    or

    try adding this to your httpd.conf file on the server or the .htaccess file
    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1 [R=301,L]

    RewriteCond %{HTTPS} on
    RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}$1 [R=301,L]


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •