Hacks

SEO Links in Publisher Module

heyula  07-Feb-2022 21:00 15413 Reads   1 comment 
publise
What to do for this process

publisher/class/Seo.php - found on line 122 in the file

return XOOPS_URL '/' $helper->getConfig('seo_module_name') . ".${op}.${id}/${shortUrl}";


in its place

return XOOPS_URL '/' $helper->getConfig('seo_module_name') . "-${id}/${shortUrl}";


Replace with code.

Sample .htaccess

RewriteEngine   On

#For Ajax Rating -
RewriteRule ^modules/publisher/index.php/([a-z]+).([0-9.]+)/include/ajax_rating.phpmodules/publisher/include/ajax_rating.php?%{QUERY_STRING}
RewriteRule ^publisher.([a-z]+).([0-9.]+)/include/ajax_rating.phpmodules/publisher/include/ajax_rating.php?%{QUERY_STRING}

#SEO .Htaccess setting

RewriteRule ^publisher-([0-9.]+)/([a-z-]+).html modules/publisher/item.php?itemid=$[L]


Publisher SEO settings

Resized Image


New Link Example:

https://sevamed.com.tr/sevamed-17/sevamed.html

https://sevamed.com.tr/modules/sevamed/

Old Link Example:

https://www.togaysan.com.tr/urunler.item.9/kelepceler-ve-lastik-takozlar.html
Rating 5.00/5
Rating: 5.0/5 (2 votes)
Voting is disabled!
user

 Re: SEO Links in Publisher Module


Awesome!!! Thank you so much for sharing!!

 


Login

Who's Online

173 user(s) are online (7 user(s) are browsing Publisher)


Members: 0


Guests: 173


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories