A
A
Aaang2020-05-14 14:28:07
WordPress
Aaang, 2020-05-14 14:28:07

How to remove www before domain?

Hello everyone, after copying sites to separate subdomains in front of one - appeared www. Everyone else is fine. How to remove it? Rewrite with search replace db path? Or can you get by with less blood? (for example, just change the name of the site in the settings, but I'm not sure that this will all end, since this www is registered in the site settings, and as I understand it, it is also in all paths) Site on WP

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2020-05-14
@Aaang

The easiest thing to do is to redirect using htaccess
the very first request to Google "Force WWW NON-WWW"
https://stackoverflow.com/questions/234723/generic...
+ if you put it in the settings without www, in my opinion, nothing will happen) but this is not accurate)
+ if some paths are registered in the database - you can use https://github.com/interconnectit/Search-Replace-DB

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question