2021年1月4日星期一

How to get last part of URL to process in parent directory without creating a new child directory

I have a url similar to:

https://example.com/event/FI42382

I have created a folder named event from which I want to use PHP to process the FI42382 part.

However, the last part is treated as its own directory. What do I need to do so that it is not a directory and instead I can manipulate the last path as a variable in event/index.php?

Sorry if I have worded the title poorly. I wasn't sure how to explain this.

https://stackoverflow.com/questions/65572674/how-to-get-last-part-of-url-to-process-in-parent-directory-without-creating-a-ne January 05, 2021 at 11:03AM

没有评论:

发表评论