I use js on my website to load pages without reloading the layout. Because of the possibility of sharing the links on facebook, I had to show the params as a hash (i cant give the params as query string, otherwise the page will be reloaded). How can i rewrite mywebsite.com/#query=string to mywebsite.com/?query=string?
I use js on my website to load pages without reloading the layout. Because
Share
You can’t, since the URL fragment is never sent to the server. You will need to use XHR to load the appropriate content from the server.