41
I have one problem, don't know is it a bug.
I use url rewrite with smartsection and all is ok. I have mydomain.com/mymodulename.catname.7/articlename
But, when i do sitemap creation, beside rewrited url, i also have:
mydomain.com/mymodulename/item.php?itemid=12.
In header of smartsection i have:
if (strpos(getenv('REQUEST_URI'), '/modules/smartsection/') === false) { ; } else {
$oldurl = getenv('REQUEST_URI');
$newurl = str_replace("modules/smartsection", "modulename", $oldurl);
header("HTTP/1.1 301 Moved Permanently");
header("Location: $newurl");
}
What's wrong?
Google crawl it as different content and warning me about duplicate metatags and title tags.
I suppose that this is a case for all modules. For tag module I'm sure.. I have tag/45 and tag/tagname with same content.
Here is Rewrite Rules extracted from .htaccess
RewriteRule ^mymodulename/(.*) /modules/smartsection/$1 [QSA,L]
RewriteRule ^mymodulename.([a-z]+).([0-9.]+)/ modules/smartsection/seo.php?seoOp=$1&seoArg=$2
Tnx.
P.S. Also, Defacer module don't work with rewrited urls. I'm using XOOPS 2.3.3.