Forum Moderators: phranque
In the htaccess file I have successfully redirected
^my_page.\htm$ /my_page\.php
But I also need to redirect the bookmark value on the page.
So the page [domain.com...] will redirect to [domain.com...] At present the bookmark is working, but I need to get the id value.
I've tried
^my_page.\htm#(.*)$ /my_page\.php?id=$1 but id is coming out blank. Any ideas?
Thanks
Donal
But I needed the value to store some data in my database so there was no reason I couldn’t do this AFTER the page was loaded.
So I created the following JavaScript function,
<script language="JavaScript">
<!--
var rj_site = location.hash.substring(1);
var rj_img = new Image();
rj_img.src = 'http://localhost/links/page_viewed.php?id='+rj_site;
-->
</script>
After the page is loaded I can save the hash value into the database. It's not pretty but it works.
Donal