How to make ngix virtual directories accessible in php?


Let's say I have a web server (nginx) where I have only one php file index.php (there is no directory structure). I want to be able to access anything after It will be an url structure. For example, etc…

Q1: How can I access whatever is afer in my index.php?

Q2: Can I even get protocol from such url? For example or

any ideas?

Thank you


0 Replies


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct