Having looked at this page my jaw hit the desk – http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
Way too complicated for my simple mind!
I’m basically wanting to rewrite urls to find and replace a # symbol with #! but obviously if the #! is present then leave it as it is… can ANYONE help me with this?
Hm, from what I know… the hash part of the url is not parsed by the serverside engine. That is a client-side job. js and such. For handling hash jobs I use the jQuery Address plugin…
I’m rewriting my site to use #! over # for SEO reasons, but any existing links to our deeplinked content will then default to the homepage, I need a way to rewrite old URL ’s containing only the # to #! BEFORE swfaddress gets it’s hands on the URL … Argh! – Can anyone help?
I think you only need to make a change in your script before handling the path… search for the ! character and if it’s not existent… simply add it.
I tried to do that in AS3 , but the problem is that swfaddress empties the hash fragment before flash can check it…
Demo – http://tpet.co.uk/#!/About – works fine, but if you visit… http://tpet.co.uk/#/About it will clear the fragment and THEN flash’s first view of it is empty so it pushes the user to the home page…