Apache - Config variable $REQUEST URI is not defined
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Ошибка Apache - AH00111: Config variable ${REQUEST_URI} is not defined
Данная ошибка возникает из-за неверного синтаксиса в файле .htaccess:
# tail -n10000 /var/log/httpd/error_log | grep warn [Sat Jan 16 18:22:07.952190 2016] [core:warn] [pid 555562:tid 140454200583936] AH00111: Config variable ${REQUEST_URI} is not defined [Sat Jan 16 18:22:49.126918 2016] [core:warn] [pid 555562:tid 140454014191360] AH00111: Config variable ${REQUEST_URI} is not defined [Sat Jan 16 18:22:49.712964 2016] [core:warn] [pid 555630:tid 140453668026112] AH00111: Config variable ${REQUEST_URI} is not defined [Sat Jan 16 18:22:49.713609 2016] [core:warn] [pid 555630:tid 140453657536256] AH00111: Config variable ${REQUEST_URI} is not defined [Sat Jan 16 18:22:49.827779 2016] [core:warn] [pid 555630:tid 140453647046400] AH00111: Config variable ${REQUEST_URI} is not defined [Sat Jan 16 18:22:49.918159 2016] [core:warn] [pid 555630:tid 140453636556544] AH00111: Config variable ${REQUEST_URI} is not defined
Решение - подправить .htaccess файл, а именно:
RewriteCond ${REQUEST_URI} ^.+$
заменить на
RewriteCond %{REQUEST_URI} ^.+$