18
           
            
                
     
    
    The following lines should be best right before the closing php-tag of xoopsroot / header.php:
 //xoRewritemodule 
$xoopsTpl =& $xoTheme->template; 
$xoopsTpl->load_filter('output', 'xoRewriteModule');  
Your htaccess should look about like this:
 RewriteEngine On 
RewriteRule ^newmodulename/(.*) /modules/news/$1 [QSA,L]  
The file header.php inside modules / news (if there is any) should look like this (right before any other code):
 if(strpos(getenv('REQUEST_URI'), '/modules/smartsection/') === 0) 
{ 
$oldurl = getenv('REQUEST_URI'); 
$newurl = str_replace("modules/news", "newmodulename", $oldurl); header("HTTP/1.1 301 Moved Permanently"); 
header("Location: $newurl"); 
}  
Good luck!