Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前,我正在尝试为添加到 iOS 上的 Wallet 应用程序的通行证设置更新。
有趣的一件事是让 urlhttps://example.com/index.php/var1/var2仍然有效并且 index.php 仍在运行。这种网址格式有效吗?
https://example.com/index.php/var1/var2
.htaccess/mod_rewrite是它工作的原因。
.htaccess
mod_rewrite
例如:
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA]
在您网站根文件夹中命名的文件中包含此规则.htaccess,将使路径/var1/var2在内部可用$_GET['path']
/var1/var2
$_GET['path']