Code Monkey home page Code Monkey logo

Comments (2)

scarstens avatar scarstens commented on August 19, 2024

@codecowboy this is a bad idea. you don't want example.com and www.example.com to both load the same content, or search engines will cut your SEO points in half, as your 2 domains will share SEO juice. The proper fix for this is to redirect one direction or the other. As a minimalist, I redirect www -> non-www with a full path follow and 301.

If you have some other use case, let me know!

from mercator.

rmccue avatar rmccue commented on August 19, 2024

FYI, Mercator treats with-www and no-www identically: example.com mapped to a site will make both www.example.com and example.com resolve to that site. However, WordPress will kick in afterwards with its canonical redirect functionality and automatically 301 redirect to whatever you have set for the mapping. If you want the www, have it in the mapping; if you don't, leave it out, and WP will handle directing you to the right one.

from mercator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.