views:

47

answers:

1

I need to configure my Apache instance to redirect the requests from a pattern like

/#/something/here

to

/something/here

I tried with

RewriteRule /([\#])/something/here /(.)/something/here

with no success. Any thoughts?

+5  A: 

Bad news: Hashes in URLs don't get sent to the server.

The text following the hash is known as a "fragment identifier" and is only used by the browser.

RichieHindle
I thought that too but I figured out that this just happens if the URL is in a link, if you access the URL by entering it in the address bar the headers are GET /#/something/here HTTP/1.1 ....
victor hugo
I don't know what browser you're using, but that looks broken to me. I just entered the url `http://entrian.com/#/test` into Firefox 3.5.2, and Wireshark gave me a trace with the opening line: `GET / HTTP/1.1`
RichieHindle
You're right, I made my test using HttpFox add-on and it displayed the wrong headers, thanks
victor hugo