php - URL rewriting problem -


I have created a website in php.

There is a list of stories stored in the database and when the user clicks any title between them, the user is redirected to that page with a query string. Like story.php? Id = 25

This means that the story is going to appear with ID 25. Now I want to rewrite the URL, but when I want to write it again, then a problem arises.

In the story.FP page, I am reading the query string like $ _GET ['id']. But after the rearrangement of the URL I am unable to read it like this. Does any body suggest that what to do

If you made some adjustments in your URL string So you can do this

Code:

Rev. Revolution on Rule ^ Story / ([^ /] *) / ([^ /] *) Html $ /story.php?story=$1&title=$2 [L]

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -