[users@httpd] mod_rewrite, .htaccess problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi 
 
i try to to do overriding with apache 
 
in my loadmodule.conf 
 
LoadModule rewrite_module /usr/lib/apache2-prefork/mod_rewrite.so 
 
in httpd.conf 
 
<Directory /> 
  Options None 
  AllowOverride All 
  Order deny,allow 
  Deny from all 
 </Directory> 
 
# use .htaccess files for overriding, 
 AccessFileName .htaccess 
 # and never show them 
 <Files ~ "^\.ht"> 
  Order allow,deny 
  Deny from all 
 </Files> 
 
my .htaccess file 
 
Options +FollowSymlinks 
 RewriteEngine on 
 ErrorDocument 404 /index 
 
RewriteRule ^news([0-9]+)$ newssection.php?sec_nosection=$1 [L] 
 RewriteRule ^index$ index.php [L] 
 
if i go to: 
 http://localhost/newssection.php?sec_nosection=1 
 that work fine... 
 
but if i try 
 
ttp://localhost/news1 
 
i get: 
 
Object not found! 
  The requested URL was not found on this server. The link on the 
 referring page seems to be wrong or outdated. Please inform the author 
 of that page about the error. 
  If you think this is a server error, please contact the webmaster. 
 Error 404 
 
error_log file 
 [Thu Oct 20 12:33:30 2005] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache] 
 [Thu Oct 20 12:33:30 2005] [notice] suEXEC mechanism enabled (wrapper: 
 /usr/sbin/suexec2) 
 [Thu Oct 20 12:33:31 2005] [notice] Apache/2.0.54 (Linux/SUSE) 
 configured -- resuming normal operations 
 [Thu Oct 20 12:33:48 2005] [error] [client 127.0.0.1] File does not 
 exist: /srv/www/htdocs/favicon.ico 
 [Thu Oct 20 12:33:49 2005] [error] [client 127.0.0.1] File does not 
 exist: /srv/www/htdocs/news2, referer: http://localhost/ 
 
any idea? 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux