Jump to content

friendly links


raduenea

Recommended Posts

Hello,

 

I have link in my site like:

<a href="index.php?page=article&title=title-something&id=1234">blabla</a>

 

I want to use in my site friendly links  like:

<a href="title-something-1234">blabla</a>

 

Where "title-something" is a title from an article and "1234" it's his ID.

How can I change the htaccess file in order if I click on that link to show that article but to make the mysql select query by ID ?

 

Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/264160-friendly-links/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.