У меня вопрос по поводу PHP curl & .htaccess.
Мой файл index.php:
<?php
if(!isset($_GET['q'])){
}
else {
$q=$_GET['q'];
}
$url = "http://81.83.192.124:8080/".@$q;
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_REFERER, $url);
$result = curl_exec($ch);
curl_close($ch);
print $result;
?>
Мой файл .htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^([abc][^/]+) index.php?q=$1
Намерение состоит в том, что когда я иду на http://example.org/NL/
, я иду с завитком к:
http://81.83.192.124:8080/NL/
Пока что я, но когда я нажимаю на ссылку, я не работаю дальше.
Кто может мне помочь?