XOOPS Web Application System (https://xoops.org)
Powered by You!
SEO Links in Publisher Module
Category : Hacks
| Published by heyula on 07 Feb 2022 9:00 PM
What to do for this processpublisher/class/Seo.php - found on line 122 in the file
le="color: #000000"><?php return XOOPS_URL . '/' . $helper->getConfig('seo_module_name') . ".${op}.${id}/${shortUrl}";
in its placele="color: #000000"><?php return XOOPS_URL . '/' . $helper->getConfig('seo_module_name') . "-${id}/${shortUrl}";
Replace with code.
Sample .htaccessle="color: #000000"><?php RewriteEngine On #For Ajax Rating - RewriteRule ^modules/publisher/index.php/([a-z]+).([0-9.]+)/include/ajax_rating.php$ modules/publisher/include/ajax_rating.php?%{QUERY_STRING} RewriteRule ^publisher.([a-z]+).([0-9.]+)/include/ajax_rating.php$ modules/publisher/include/ajax_rating.php?%{QUERY_STRING} #SEO .Htaccess setting RewriteRule ^publisher-([0-9.]+)/([a-z-]+).html modules/publisher/item.php?itemid=$1 [L]
Publisher SEO settings
New Link Example:https://sevamed.com.tr/sevamed-17/sevamed.htmlhttps://sevamed.com.tr/modules/sevamed/Old Link Example:https://www.togaysan.com.tr/urunler.item.9/kelepceler-ve-lastik-takozlar.html