Question: How do you redirect a folder/directory to a file in PHP? For example, on reddit's website, if you type in reddit.com/r/ it redirects to reddit.com/subreddits
How do you redirect a folder/directory to a file in PHP? For example, on reddit's website, if you type in reddit.com/r/ it redirects to reddit.com/subreddits instead. I know the header function is used but I don't know how to check if the user requested to go to reddit.com/r/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
