thara Posted November 12, 2012 Share Posted November 12, 2012 (edited) In my website there is a link to registered tutors. That link is something like this http://www.lankainstitute.com/profiles/centers/index.php?code=1203&institute=Montana+Higher+Educational+Institute#page=art-section So I need to rewrite this link and after rewrite it want to display in my browser's address bar something like this: www.lankainstitute.com/1203/Montana-Higher-Educational-Institute Can anybody tell me is it possible to rewrite above original URL to my expected URL and can display it in address bar? Thank you. Edited November 12, 2012 by thara Quote Link to comment https://forums.phpfreaks.com/topic/270582-convert-original-url-to-friendly-url-and-display-it-in-browsers-address-bar/ Share on other sites More sharing options...
codefossa Posted November 12, 2012 Share Posted November 12, 2012 No, luckily you cannot do this because it would be a huge problem with security. Just think about phishing sites. What you can do is edit the .htaccess file to allow you to set variables like that (which you need to parse with PHP), and you could have the page set up correctly then. That's a pretty popular way of doing it and the way I do it. Then you could call that second URL and it would do everything you want. Quote Link to comment https://forums.phpfreaks.com/topic/270582-convert-original-url-to-friendly-url-and-display-it-in-browsers-address-bar/#findComment-1391824 Share on other sites More sharing options...
thara Posted November 13, 2012 Author Share Posted November 13, 2012 second url??? I dont have any idea about it.... Can you elaborate it more? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/270582-convert-original-url-to-friendly-url-and-display-it-in-browsers-address-bar/#findComment-1391932 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.