HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Plugins/Modules/Addons (http://www.howtoforge.com/forums/forumdisplay.php?f=34)
-   -   Mime type rss (http://www.howtoforge.com/forums/showthread.php?t=60514)

MaTheRyS 11th February 2013 10:55

Mime type rss
 
Hello,

I use ispconfig3 since a long time on my little server and i have a problem.
When some wordpress are hosted on this server, the rss feeds of these wordpress are served as "text/xml".

This is a problem as google index them like normal pages, that generate a lot of duplicate content.

What can i change in the ispconfig or apache configuration in order to serve rss feeds as "application/rss+xml" ?

Thanks.

MaddinXx 11th February 2013 12:25

AddType application/rss+xml .rss (or change .rss to fit the needs)

MaTheRyS 11th February 2013 13:46

Thanks.

But wordpress don't use file extension in url.
Feeds are something like :
http://domain.tld/feed/
http://domain.tld/article/comments/rss2
http://domain.tld/?feed=rss2

Does AddType application/rss+xml .rss works anyway ?
Or do i need to do something like :
AddType application/rss+xml .*feed$
AddType application/rss+xml .*rss2$


All times are GMT +2. The time now is 01:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.