18
The following lines should be best right before the closing php-tag of xoopsroot / header.php:
le="color: #000000"><?php //xoRewritemodule $xoopsTpl =& $xoTheme->template; $xoopsTpl->load_filter('output', 'xoRewriteModule');
Your htaccess should look about like this:
le="color: #000000"><?php 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):
le="color: #000000"><?php 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!