• Maryland YouTube Marketing & SEO company Annapolis Baltimore Washington DC
Joomla 3.8 RSS SEF bug fix via .htaccess

Joomla 3.8 RSS SEF bug fix via .htaccess

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

Joomla RSS and SEF Bug Fix with .htaccess

Today we found a fixed a bug in Joomla 3.8.11. The problem was with the SEF (search engine freindly) url created for our RSS feed.

For example.
The non-sef url is this:
https://www.serr.biz/index.php?option=com_content&view=category&layout=blog&id=8&Itemid=1127&format=feed&type=rss

When url rewriting is turned on, the url becomes this:
https://www.serr.biz/blog.feed?type=rss

When clicked, we would just see the standard /blog.html page, even though the url was this: https://www.serr.biz/blog.feed?type=rss

This problem occurs with any page that is set to generate an RSS feed.

We probably could have hacked a core file to fix this issue, but then it would be undone in the next update.

Instead, we modified our .htaccess file to include this.

RewriteCond %{THE_REQUEST} \.feed(\S+)\sHTTP [NC]
RewriteRule ^ https://www.serr.biz/index.php?option=com_content&view=category&layout=blog&id=8&Itemid=1127&format=feed&type=rss [L,R=301,NE]

What that rule does is looks for .feed in any url. If it finds it, it redirects the request to the default RSS feed url string.

Hopefully, Joomla will see this bug fix and correct the problem in the next update.

Image credit: Source image modfieid from https://www.pexels.com/photo/man-in-red-crew-neck-sweatshirt-photography-941693/

Newest SEO Tech Blog Article

Map to Serr.biz

Serr.biz LLC, Maryland SEO Company

Address:
339 Kingsberry Drive
Annapolis, Maryland, 21409.

Office Phone: 410-757-3676
Mobile Phone: 917-435-0662

M-F 9am-5pm
© 2017 Serr.biz LLC a Maryland YouTube Marketing and SEO company serving Annapolis, Baltimore and Washing DC. All Rights Reserved. Designed By Serr.biz