Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemap Question #154

Closed
daniellefrapp opened this issue Jun 25, 2018 · 7 comments
Closed

Sitemap Question #154

daniellefrapp opened this issue Jun 25, 2018 · 7 comments
Labels
need info Need more information on the issue

Comments

@daniellefrapp
Copy link

Hi there,

I seem to be having trouble setting up my sitemaps. For example this is what I have for the blog section:
screen shot 2018-06-25 at 12 04 37 pm but when I click to go to the sitemap I get a 404, http://64.62.135.231/sitemaps/1/section/blog/1/sitemap.xml If I look at the error it's saying the template can't be found. Do I need to create a template or a route for this to work? Thanks!

@khalwat
Copy link
Collaborator

khalwat commented Jun 25, 2018

No, you shouldn't have to set up any templates at all; my guess is that it might be some kind of local server setup issue. SEOmatic should automatically "just work" in that regard.

What happens if you go to http://64.62.135.231/sitemap.xml ?

@khalwat khalwat added the need info Need more information on the issue label Jun 25, 2018
@daniellefrapp
Copy link
Author

daniellefrapp commented Jun 25, 2018

@khalwat I get a 404 too. I have the environment set to live. But I get a 404 trying to see my robots.txt too. Do you think it could be related to my htacess? Here is what's in it:

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Send would-be 404 requests to Craft
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
    RewriteRule (.+) index.php?p=$1 [QSA,L]
</IfModule>

@khalwat
Copy link
Collaborator

khalwat commented Jun 25, 2018

So I'm not sure what is wrong, potentially something with the server setup, but SEOmatic registers frontend template handlers for those URLs.

Does the rest of SEOmatic work as expected? What I'm doing is pretty straightforward, which is why I'm having a hard time thinking that this isn't some kind of server config setup issue.

Do any other plugins that register frontend template routes work on your setup?

@khalwat
Copy link
Collaborator

khalwat commented Jun 25, 2018

Also, do you see this problem in your local dev environment?

@daniellefrapp
Copy link
Author

I figured it out, it was an issue with a plugin called Fallback Site that will fallback to a default language when a request is made to an entry in another language.

Thanks for your help.

@khalwat
Copy link
Collaborator

khalwat commented Jun 25, 2018

No problem!

@khalwat khalwat closed this as completed Jun 25, 2018
@khalwat
Copy link
Collaborator

khalwat commented Jun 25, 2018

Related: craftcms/cms#3028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info Need more information on the issue
Projects
None yet
Development

No branches or pull requests

2 participants