标签: php apache .htaccess nginx mod-rewrite
我正在尝试将我的Nginx块转换为apache(.htaccess)文件,但无法实现。你能帮我吗
location = /index.php { if ($a = get) { return 301 /$a/$b; } } location = /home.php { return 301 /a/$bool; }
对于操作=获取,以下是旧版网站的网址:
/index.php?action=get&id=5000849 => / get / 5000849