I know this really isn't php but since mod rewrite is used quite a bit to clean up url's that contain php variables I figured this would probably be the best place to post this question.
I am trying to add a named anchor to the end of my url and get a mod rewrite statement to work with or without that named anchor listed.
Here is what I have now.
Code:
RewriteRule ^faculty/([^/\.]+)/?$ faculty/index.php?pos=$1 [L]
this changes mydomain.com/faculty/?pos=admin
into mydomain.com/faculty/admin/
This page shows every faculty member that is an admin. I have other pages that I want to link to a certain faculty member. So instead of having a new page that only shows a specific faculty member I have added named anchors down the page so that I can link to there.
So i figured this might do the trick but it doesn't seem to be working
Code:
RewriteRule ^faculty/([^/\.]+)/?([^/\.]+)/?$ faculty/index.php?pos=$1#$2 [L]
So i want to be able to have.
mydomain.com/faculty/?pos=admin#bobbarker
become mydomain.com/faculty/admin/bobbarker
Any help would be appreciated