girish.kc Posted February 10, 2012 Share Posted February 10, 2012 Hi, In my application I have not used any folders to define the hierarchy. All file s are in a single folder. What is the easy way of creating the Breadcrumb. I am rewriting the URL from www.mysite.com/main.php/page=pagename&id=10 to www.mysite.com/main/pagename/id/10 Is it possible to use the re-written URL to create the breadcrumb? If yes I can define hierarchy in the URL and use the same to create breadcrumb. Quote Link to comment https://forums.phpfreaks.com/topic/256801-breadcrumb-with-re-written-url/ Share on other sites More sharing options...
blacknight Posted February 11, 2012 Share Posted February 11, 2012 $_GET['id'] will still equal 10 in the rewrite so i cant see why not... Quote Link to comment https://forums.phpfreaks.com/topic/256801-breadcrumb-with-re-written-url/#findComment-1316870 Share on other sites More sharing options...
scootstah Posted February 11, 2012 Share Posted February 11, 2012 Of course it's possible. Just change the link in the breadcrumb from the query string to the pretty url. Quote Link to comment https://forums.phpfreaks.com/topic/256801-breadcrumb-with-re-written-url/#findComment-1316872 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.