Skip to content
Advertisement

Rewrite URL with parameters passed through PHP

So I have my PHP page page.php with the parameter id for example.

Everything works as expected when I visit

JavaScript

What I try to do now basically is, reach the site when the user visits

JavaScript

I’ve looked at countless questions and websites about htaccess rewrites and so on, but I’m not even entirely sure if I need that. I did the exact same thing in an old project of mine where I can’t find any htaccess file, but I also have no idea what I really did.

And in case I do need the htaccess file. How do I ensure that it works properly?

Advertisement

Answer

Alright, gotta put this in the htaccess

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement