33
           
            
                
     
    
    hi..i tried to installed this plugin in xampp (mod-rewrite enabled check through phpinfo)
i want to try to use with the news module
after the setup in root/header.php
 //xoRewritemodule 
$xoopsTpl =& $xoTheme->template; 
$xoopsTpl->load_filter('output', 'xoRewriteModule');  
xoRewriteModule.ini.php 
 [xoRewriteModule] 
 news="news"  
and making htacess 
 RewriteEngine on 
RewriteRule ^news/(.*) /modules/news/$1 [QSA,L]  
and also news/header.php
 if(strpos(getenv('REQUEST_URI'), '/modules/news/') === 0) 
{ 
$oldurl = getenv('REQUEST_URI'); 
$newurl = str_replace("modules/news", "news", $oldurl); header("HTTP/1.1 301 Moved Permanently"); 
header("Location: $newurl"); 
}  
when i access 
http://localhost/project/news/ i received a 404 error
while when i access 
http://localhost/project/modules/news/all the link is displayed as 
http://localhost/project/news/ but when i clicked any of the link I received 404 message..
anyone know how to fix this ? do i need anything in the xoRewriteHtaccess.ini.php
 [xoRewriteHtaccess] 
 SERVER_NAME = "localhost" 
 SERVER_ADDR = "127.0.0.1"  
the mod_rewrite is ok..in my other project using xampp it is working normally