ispreview
Forum Replies Created
-
Ah.. think I know what he means.
A lot of people have created custom RSS/Google News feeds to avoid heavy-handed plugins for the same task. The code most often shared and added into functions.php for it is this.
function custom_feed_rewrite($wp_rewrite) { $feed_rules = array( 'feed/(.+)' => 'index.php?feed=' . $wp_rewrite->preg_index(1), '(.+).xml' => 'index.php?feed='. $wp_rewrite->preg_index(1) ); $wp_rewrite->rules = $feed_rules + $wp_rewrite->rules; } add_filter('generate_rewrite_rules', 'custom_feed_rewrite');
I’m not a natural PHP coder and so I’m not sure how to change this so that the SEO Sitemap works without breaking the equally vital custom feeds.
Which plugin function was it found in pixel?
I was able to remove the canonical line by using this in functions.php.
add_filter(‘wpseo_canonical’, ‘__return_false’);
But the same doesn’t work for ‘wpseo_next_rel_link’ or ‘prev’ link, which is odd as the API Doc’s suggest they should. Any idea how to get rid of these?
I get the same problem and have my own custom theme, so the fix mentioned here doesn’t work as I don’t have that code.
https://yoast.com/xml-sitemap-in-the-wordpress-seo-plugin/
I never see the sitemap files either but don’t know where they would be created? I get this with both pretty urls and pathinfo methods of permalinking. I’ve since stopped using .htaccess based pretty url’s though as they caused problems with my other redirects.
Forum: Fixing WordPress
In reply to: How to merge WP sub-dir htaccess with my ROOT htaccessI finally got around MOST (but not all) of the problems by putting the WP .htaccess code (and changing it a little) BELOW all of my other rewrites in the ROOT as follows..
# BEGIN WordPress
#<IfModule mod_rewrite.c>
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#</IfModule>
# END WordPressThis worked but some problems remain. For example, any attempt to ‘Preview’ a post I’m writting in WP fails with a 404 and I can’t rewrite or even redirect wordpress links. For example I want to redirect requests to my old RSS feed (/news/rss.xml) to WP’s feed at /feed but nothing I try (e.g. RewriteRule ^news/rss.xml /feed [QSA,L]) seems to work. It just brings up an odd error about being the wrong WP template?
Also my old site was at index.shtml but now anybody going to index.shtml in the root doesn’t auto-redirect to the working index, it just returns 404. Once again any attempt to rewrite or redirect for a fix fails with a 404.
Help.
Upgraded to WP 3.3.1 and the problem remains.
Ditto for the featured image bug with WP3.3 and v1.1.1 of the plugin.