Search code examples
jquery.htaccesshashurl-rewritingswfaddress

URL rewriting - removing hash


How can I remove the hash sign (#) from the page's URL ? I am using the SWFAddress plugin (jQuery) for deep linking purposes.

I need to replace this

localhost/site/#blog

by

localhost/site/blog

(Yes, #blog is just an anchor).

Somehow url rewriting in .htaccess doesn't work

RewriteRule /blog #blog [L]

Any suggestions ?


Solution

  • The bit with the hash in the URL is not sent to the server when requesting a page, so you can't use redirect rules like that. It's client-side only.