[eluser]DanielJay[/eluser]
I am working on creating an application that allows me to store my bookmarks in a database instead of in firefox as I use multiple computers. I have seen how the del.icio.us bookmark code works by making the bookmark url javascript as shown below:
Code:
[removed]location.href='http://del.icio.us/post?v=4;url='+encodeURIComponent(location.href)+';title='+encodeURIComponent(document.title)
so my bookmark url is:
Code:
[removed]location.href='http://[mydomain]/Portal/bookmark/addbookmark/'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)
However when I do make my link point to: http://[mydomain]/Portal/bookmarks/addbookmark/http://www.google.com/ I cannot pass this and it produces an apache 404. Portal is the root of CodeIgniter with my index.php, bookmarks is the controller and addbookmark is a function in the bookmarks controller.
If I create a really basic php page with the following and save this outside of my Portal directory. Then modify the bookmark url to http://[mydomain]/addbookmark.php?url=http://www.google.com/ everything works fine.
Code:
<?php
foreach($_GET as $key=>$value) {
echo $key.' = '.$value.'<br />';
}
?>
I have even removed my .htaccess file trying to figure this out and it still produces an apache 404 when going to http://[mydomain]/Portal/bookmarks/addbookmark/http://www.google.com/ .
Any suggestions?