MyBB Community Forums

Full Version: Google SEO plugin Sitemap
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've just recently installed the 'Google SEO Plugin', and enabled the sitemap, but I can't seem to get it working.
In the plugin tab, it says sitemap is enabled, but it wants me to add this to the htaccess:
RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://goask.it/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

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

So I did. That didn't seem to help. In the documents, it says the sitemap are located at /sitemap-index.xml, but that gives me an error 404. So I tried misc.php?google_seo_sitemap. It just says it's disabled or invalid. Since it is enabled, have I done something wrong? I may suspect an error 40, but I don't know.

My site is goask.it

Thanks in advance,
Jonas.
if Google SEO plugin says add the content to .htaccess file then you have to add that.
(2013-06-28, 03:01 PM).m. Wrote: [ -> ]if Google SEO plugin says add the content to .htaccess file then you have to add that.

I did add it to the .htaccess file, but didn't seem to help my problem. I believe i mentioned it in the first post too. Confused
I see it in http://goask.it/htaccess.txt but it should be .htaccess, and not htaccess.txt

I'll have to add a warning about htaccess.txt it seems... Sad
The sitemap works fine: http://goask.it/misc.php?google_seo_sitemap=index (the 2nd link you entered is invalid). Just the rewrite for it doesn't. So you either didn't insert it to .htaccess correctly or if you use nginx, read this https://github.com/frostschutz/Google-SE...-nginx.txt

EDIT: @up, good catch.

@author, you also should insert the rewrites between <IfModule mod_rewrite.c></IfModule>
(2013-06-28, 07:53 PM)Destroy666 Wrote: [ -> ]@author, you also should insert the rewrites between <IfModule mod_rewrite.c></IfModule>

That's up to the webmaster to decide.

If your URLs depend on rewrites, you're screwed either way when mod_rewrite goes missing. You have the choice between outright error (due to Apache being stupid about .htaccess) or a site where pretty much all URLs are broken.

So no, you don't need IfModule mod_rewrite when using Google SEO.
(2013-06-28, 07:47 PM)frostschutz Wrote: [ -> ]I see it in http://goask.it/htaccess.txt but it should be .htaccess, and not htaccess.txt

I'll have to add a warning about htaccess.txt it seems... Sad

Bah, there's more than one? Alright my bad. :/
Gotta fix it by next week, I'm rushing on vacation now, just had a few minutes to check emails, not changing codes sadly.

__
Thanks a lot all of you Smile
Back from vacation and trying to get it into .htaccess. From another post I found here, I tried to rename the htaccess.exe to htaccess. No harm done, however the original /sitemap-index.xml still didn't respond. So I changed it to .htaccess, and got an internal error. On Filezilla I'm forcing it to show hidden files, and there just ain't a .htaccess file. Could I copy the entire htaccess(.txt) file, and put into a .htaccess without causing troubles? And could it work?