tags:

views:

69

answers:

2

I've got a flash file (that I can't edit) that is making erroneous requests to a file ending in a #. So the link where the file is being accessed is /files/flash/, so the requests are being made for /files/flash/#

Is there any way for me to detect the # in the link so that I can have those pages not load?

+6  A: 

The fragment is not sent to the server, and therefore cannot be accessed via PHP

In case you are unsure:

scheme://host.tld/file/path/filename.ext?uri#fragment

The only way to access the fragment is through Javascript or another Client-Side script.

Chacha102
beat me to it. deleting mine. upvoting yours.
Gordon
A: 

Are you saying you want those items to return 404 error? Do you want it to strip off the /# at the end?

If you are using apache with mod_rewrite, you could do it with .htacceess

Apache1.3 docs.

easement
# cannot be accessed through mod_rewrite either.
Chacha102
Is anyone still using Apache 1.3? Might as well link to the docs for 2 , I reckon.
Alex JL