I have a WordPress site
my website URL is http://www.domainname.com
In wp settings panel there are two fields showing
Wordpress Address : http://www.domainname.com
Site Address : http://www.domainname.com
I want my website URL to be http://domainname.com
My question is if i just change “Site Address” and remove www from it, will it cause any harm to my site ?
I dont have domain name with http://domainname.com
I only have http://www.domainname.com
Will the change work smoothly ?
I want that when my site accessed it shows http://domainname.com in URL bar of browser.
and when some post or page is clicked it will show http://domainname.com/postname.
Change your .htaccess file to something like this:
If you have any WordPress permalinks, you’ll want to copy that over too. Here’s an example: