I currently have rewrites in an htaccess file of mine and need to account for a jumplink.

The issue I beleive I am having is the '#' keeps getting recognized as a comment.

I've seen questions on here suggesting the use of the [NE] or [R] flags, but either I am not using them correctly or they do not do what I need.

My current working rewrite is:

`RewriteRule ^news/([^/]*)/([^/]*)/*$ display_news.php?yid=$1&mid=$2 [L]`

My idea was to append another segment to the end of the url with something like this:

`RewriteRule ^news/([^/]*)/([^/]*)/1/*$ display_news.php?yid=$1&mid=$2#jumplink [L]`

With my use of the [NE] and [R] flags I replaced `?` with `3F` and `$` with `24` for hexcodes given by <http://www.asciitable.com/>. Do I have to enclose these codes with special brackets or something? How would Apache know I don't literally mean `3F` or `24`. 

The current behavior when I try to place these hexcodes in my file I get the internal server error.

If there is a more elegant method to account for jumplinks in an htaccess file I am all ears.

EDIT:

As suggested here are example URLs of what I am expecting.

`http://website.com/news/2013/11` would map to `display_news.php?yid=2013&mid=11`

and 

`http://website.com/news/2013/11/1` would map to `display_news.php?yid=2013&mid=11#jumplink`

But I would want the address to remain in the format `http://website.com/news/2013/11/1` and just map to the page.