skip to Main Content

What should be the value of xmlns attribute for urlset tag in the sitemap? – SEO

My sitemap looks something like this: <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">    <url>       <loc>http://www.example.com/page1.html</loc>    </url> </urlset> In the most examples in the internet urlset tag has a xmlns attribute with this value http://www.sitemaps.org/schemas/sitemap/0.9. My question is,…

VIEW QUESTION

How to make Canonicals with PHP – SEO

I've search around on SO, but can't find an exact answer to my needs. Generating a URL is pretty easy... Like so: <link rel="canonical" href="https://example.com<?php echo ($_SERVER['REQUEST_URI']); ?>" /> But, the issue with this is, the $_SERVER['REQUEST_URI']) will always fetch…

VIEW QUESTION

.htaccess rewrite url for seo friendly urls causes 500 error

Here are some example urls I wish to rewrite: https://website.com?c=food&s=cheese&p=3 https://website.com?c=food&s=cheese https://website.com?s=cheese I wish for the above to be rewritten to: https://website.com/food/cheese/3 https://website.com/food/cheese https://website.com/cheese Here is my htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^.*.(jpg|css|js|gif|png)$ [NC] RewriteRule ^([^/]*)/([^/]*)/([^/]*)$…

VIEW QUESTION
Back To Top
Search