Not Solved Google SEO Plugin XML Sitemap
#5
Not Solved
(2012-11-16, 04:03 AM)frostschutz Wrote: Do you have two sitemap rules in your .htaccess, with the other coming first and QSA missing?

Are you using an Apache clone?

It could be a plugin interfering, but the rewrite-free variant ( http://techtalkin.com/misc.php?google_se...ads&page=1 ) works fine as opposed to the rewrite variant ( http://techtalkin.com/sitemap-threads.xml?page=1 ) which does not work. So it seems to be missing the page parameter after the rewrite, but with a rewrite rule as shown above and with Apache (any version I'm familiar with) this is not possible.

I think I figured it out the cause...

This redirect:

RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

Would redirect this request:

http://techtalkin.com/sitemap-forums.xml?page=1

To:

http://techtalkin.com/misc.php?google_se...map=forums

Which is a broken link. But, if you go to:

http://techtalkin.com/misc.php?google_se...ums?page=1

Everything works. If I understand correctly, the problem is that the rewrite rule doesn't append the "?page=X" string to the end of the URL. So, I modified the rule:

RewriteRule ^sitemap\-([^./]+)\.xml?page=([0-9]+)$ misc.php?google_seo_sitemap=$1&page=$2 [L,QSA,NC]

But, still no luck...

(2012-11-16, 03:42 PM)frostschutz Wrote: None other than those I already provided. There is nothing wrong with the .htaccess

You can work around by removing the sitemap url scheme, so it will use misc.php? directly instead. But chances are that this issue (whatever is causing it) will give you trouble later on elsewhere.

I removed the "sitemap-{url).xml" in order to try it without rewrites and now I have a new issue:

http://techtalkin.com/misc.php?google_seo_sitemap=index

The links are showing up without a value for the google_seo_sitemap paramater, e.g.:

http://techtalkin.com/misc.php?google_seo_sitemap=&page=1
TechTalkin — The Premier Community for Technology Enthusiasts
Full Ambit Media — Zero Sacrifice Web Design & Development
SiteSense — Fast, Flexible and Free PHP/MySQL CMS
Reply


Messages In This Thread
Google SEO Plugin XML Sitemap - by Alex Stanford - 2012-11-15, 04:14 PM
RE: Google SEO Plugin XML Sitemap - by Alex Stanford - 2012-11-16, 03:57 PM
RE: Google SEO Plugin XML Sitemap - by kisiell - 2013-08-18, 09:38 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)