Hacks

SEO Links in Publisher Module

heyula  07-Feb-2022 21:00 4517 Reads  1
publise
When I activate the seo feature in the publisher, the link will be as follows

publisher.item.6/kalici-makyaj.html

where .item.6 represents the article ID

With this hack, the link structure will be as follows

publisher-6/kalici-makyaj.html

Free of .item.6 software

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.it ... r-ve-lastik-takozlar.html
Rating 5.00/5
Rating: 5.0/5 (2 votes)
Votes are disable!
Print article
user

 Re: SEO Links in Publisher Module


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

 


Login

Who's Online

48 user(s) are online (2 user(s) are browsing Publisher)


Members: 0


Guests: 48


more...

Donat-O-Meter

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

Latest GitHub Commits

Categories