Jump to content

Convert Original Url To Friendly Url And Display It In Browser's Address Bar


thara

Recommended Posts

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 by thara
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.