How to remove a hash sign (#) from a page URL? I am using the SWFAddress (jQuery) plugin for deep links.
I need to replace this
local / website / blog #
by
local / website / blog
(Yes, #blog is just a binding).
Somehow rewriting urls in .htaccess doesn't work
RewriteRule / blog #blog [L]
Any suggestions?
The hash bit in the URL is not sent to the server when the page is requested, so you cannot use such redirection rules. This is only the client side.
URL- , . Heres one JavaScript:
if (location.href.indexOf("#") > -1) { location.assign(location.href.replace(/\/?#/, "/")); }
, URL URL # /. , /site/#blog /site/blog.
#
/
/site/#blog
/site/blog
Source: https://habr.com/ru/post/1727094/More articles:django последние 30 записей со списком - djangoreading bytes in a file in vb.net - variablesandroid html.fromhtml download image from internet - androidproblems with two key ranges in couchdb - couchdbWhat is the use of widget id on wxpython? - wxpythonWhich programming language is most suitable for implementing the windows form dialog box? - user-interfaceInstall Silverlight template from code? - templatesspl_autoload does not work when the script is run from the command line - phpHow to create a UITextView with a three-dimensional shadow border? - coding-styleRecompile Vim for pythoncomplete # Fill in the modules * other * than the standard library? - pythonAll Articles