Forum
SEO Friendly Blog URL's
Is there a way to remove "post.php?s=" from your url's?
I know you can change the "blog post page path" from the admin settings, however I would imagine by removing post.php the blog post won't display properly or at all.
What would be the best way to accomplish this?
There is documentation here: https://docs.grabaperch.com/addons/blog/installation/clean-urls/
That works but now I have a new problem. I had a sitemap set up for my blog that requires php. After changing the .htacess the sitemap no longer displays properly.
/blog/blog-sitemap.php
blog-sitemap.html
Is there a rewrite that will make sure that https://example.com/blog/blog-sitemap has the .php?
When you say it doesn't display properly, what happens?
Before the rewrite it would appear as a standard xml tree. After the rewrite it displays what the default post.php would display when there isn't a specific post to display.
Do you have a rewrite rule in place for the sitemap?
No. Thats why I thought there was possibly a way to make sure that /blog/blog-sitemap rewrites to /blog/blog-sitemap.php and actual blog posts like /blog/example-blog-post.php rewrite to /blog/example-blog-post
I have no idea what the actual rewrite rules would be though.
What do you currently have?
The rewrite rule that is effecting the sitemap is:
That worked. You're the man, Drew!