ayuda por favor
fedora16
asi me funciona
http://seophp.example.com/product.php?product_id=123
asi no funciona
http://seophp.example.com/my-super-product.html
Not Found
The requested URL /my-super-product.html was not found on this server.
Apache/2.2.21 (Fedora) Server at seophp.example.com Port 80
todo esta en el mismo directorio /var/www/html/seophp/
product.php
<?php
echo 'producto #' . $_GET['product_id'];
?>
.htaccess
RewriteEngine On
RewriteRule ^my-super-product\.html$ /product.php?product_id=123
/var/log/httpd
more access_log
[Thu Jan 05 20:21:24 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/seophp/my-super-product.html
[Thu Jan 05 20:27:26 2012] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 05 20:32:09 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/seophp/my-super-product.html
[Thu Jan 05 20:34:30 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/seophp/my-super-product.html
[Thu Jan 05 20:36:30 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/seophp/my-super-product.html
more error_log
127.0.0.1 - - [05/Jan/2012:20:32:09 +0100] "GET /my-super-product.html HTTP/1.1" 404 303 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
127.0.0.1 - - [05/Jan/2012:20:34:18 +0100] "GET /product.php?product_id=123 HTTP/1.1" 200 30 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
127.0.0.1 - - [05/Jan/2012:20:34:30 +0100] "GET /my-super-product.html HTTP/1.1" 404 303 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
127.0.0.1 - - [05/Jan/2012:20:35:10 +0100] "GET /product.php?product_id=123 HTTP/1.1" 200 30 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
127.0.0.1 - - [05/Jan/2012:20:35:14 +0100] "GET /product.php?product_id=123 HTTP/1.1" 200 30 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
127.0.0.1 - - [05/Jan/2012:20:36:30 +0100] "GET /my-super-product.html HTTP/1.1" 404 303 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
en el fichero de apache esta descomentado el mod_rewrite.so
LoadModule rewrite_module modules/mod_rewrite.so
AccessFileName .htaccess
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
DocumentRoot "/var/www/html"
ServerName localhost
</VirtualHost>
<VirtualHost 127.0.0.1:80>
DocumentRoot "/var/www/html/seophp"
ServerName seophp.example.com
<Directory /seophp/>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
podria ser algun problema con el cortafuegos
getsebool -a
allow_httpd_anon_write --> off
allow_httpd_mod_auth_ntlm_winbind --> off
allow_httpd_mod_auth_pam --> off
allow_httpd_sys_script_anon_write --> off
httpd_builtin_scripting --> on
httpd_can_check_spam --> off
httpd_can_connect_ftp --> off
httpd_can_connect_ldap --> off
httpd_can_network_connect --> off
httpd_can_network_connect_cobbler --> off
httpd_can_network_connect_db --> off
httpd_can_network_memcache --> off
httpd_can_network_relay --> off
httpd_can_sendmail --> off
httpd_dbus_avahi --> off
httpd_enable_cgi --> on
httpd_enable_ftp_server --> off
httpd_enable_homedirs --> off
httpd_execmem --> off
httpd_read_user_content --> off
httpd_setrlimit --> off
httpd_ssi_exec --> off
httpd_tmp_exec --> off
httpd_tty_comm --> on
httpd_unified --> off
httpd_use_cifs --> off
httpd_use_gpg --> off
httpd_use_nfs --> off
si hago un
<?php
phpinfo()
?>
Loaded Modules mod_rewrite
no se porque no funciona