Periods have a special meaning in URLs – they signify a domain or file-type extension. Example:
http://www.example.com/path/to/resource.html
“http://” is the protocol.
“www.” – not really needed
“example” – name of the domain (website)
“.com” – TLD (top-level domain)
Other periods in the URL would cause problems as they would indicate a change in domain or the start of the file-type extension of the resource. See https://en.wikipedia.org/wiki/Uniform_Resource_Locator for more information.
In WordPress you can set it up so that the URL of a page would be http://example.com/name_of_post or http://example.com/name-of-post
To do this, go to your permalink settings and select the “post-name” setting and click save. Now all your posts (and pages) can be reached at, “yoursite.com/name-of-post”. Then it’s just a matter of naming your pages/posts the way you want (but again, no periods).
Hope this helps.
So how can I set to http://example.Com/name_of_post I tried but it’s not working
Make sure the “post-name” setting is selected in your permalinks and then on the actual slug name of the post (the text just under the post title in the post editor screen), click the slug button and change it to “name_of_post” and click save. Then publish.
Thanks that helped me
Marking this topic as resolved