URL Rewriting
Ambiente: Debian 7 com Apache 2.22 corretamente instalado ( não tenho arquivo httpd.conf ) index.php: <!DOCTYPE html>
<html> <body> <?php $url = $_GET['url']. echo 'URL = '. $url.?> </body> </html>.htaccess: RewriteEngine OnRewriteCond %{SCRIPT_FILENAME}!-f
RewriteCond %{SCRIPT_FILENAME}!-d
RewriteRule ^(.*)$ index.php?url=$1 PROBLEMA:.htaccess na mesmo diretório do index.php. Mas quando acesso a URL http://localhost/url_rewriting/teste é retornado um sonoro "NOT FOUND" ao invés de processar o script de index.php. O que fiz de errado?? Obrigado desde já!!!
Discussão (1)
Carregando comentários...