我的NGINX服务器上具有以下目录配置: -特殊(仅用于API调用。) -一切(包含index.php,图像,静态页面等所有内容)
当前,所有内容都链接到“ everythingelse”文件夹。 例如,example.com /或example.com/image2.jpg将在我的服务器上使用everythingelse / index.php或everythingelse / image2.jpg。
我要对“ / special /” URL设置例外,该URL将链接到特定URL。 我使用“ root / var / www / everythingelse”,基本上想为/ special /事物创建某种例外:
“ example.com/special”或“ example.com/special/element/125/”将重定向到special / special.php?element = 125(但不重写URL)。
我该怎么办? 我尝试了几件事,但没有任何效果,我想有些琐碎的事情要做?