Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>I cannot comment so I have to answer.</strong></p> <p>Reading all answers and your question, it is not clear what you want. At least for me. You say, for example: </p> <p><code>http://localhost/DIRECTORY/AID/article.php?a_id=24</code> to</p> <p><code>http://localhost/DIRECTORY/AID/article/this_is_article_title</code></p> <p>But I guess that's not quite right, unless you want</p> <p><code>http://localhost/DIRECTORY/AID/article.php?a_id=24</code></p> <p>to be the URL entered in the browser address bar and if so, what would be the purpose of the redirection? Finally, any visitor would have to type precisely what you don't want them to type. </p> <p>My guess is that you want the friendly URL to be entered:</p> <p><code>http://localhost/DIRECTORY/AID/article/this_is_article_title</code> , so the question should be the other way around:</p> <p><code>http://localhost/DIRECTORY/AID/article/this_is_article_title</code> TO </p> <p><code>http://localhost/DIRECTORY/AID/article.php?a_id=24</code> </p> <p>The next thing that does not seem to be clear, is what's displayed in the browser bar? The only answer is: The entered URL. No way it can show anything different.</p> <p>In short: If you want <strong>http://localhost/DIRECTORY/AID/article/this_is_article_title</strong> to show in the addres bar, that's what you have to enter. The real URL, the SUBSTITUTION (<strong>http://localhost/DIRECTORY/AID/article.php?a_id=24</strong>), is never shown and is never typed. That's what redirection is for. </p> <p>On the other hand, it is not clear either how the ID numbers provided by news.php are expected to be converted to strings like <strong>article/this_is_article_title</strong>. ¿Where are those strings, how many ID numbers are, what kind of algorithm or formula should be used to achieve that conversion, which of those IDs are 'root" as you mentioned in a comment and how can they be identified, etc.? You should elaborate more on this point because it seems improvised and incoherent with your previous comments.</p> <p>I might be wrong, of course. I am just guessing to try to help with your question.</p> <p>Please, geniuses, don't downvote this answer, read it. I am not trying to answer the question and I am really far from being a genius.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload