Creating a redirect to /sitemap.xml

By default the Simple Sitemap Module creates your sitemap in the address format below:

For appearances sake most people preffer to have a sitemap url that looks like the below format:

This can be achieved with a simple .htaccess redirect

Open your .htaccess file and add the following code:

<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteRule ^sitemap.xml index.php?m=simple_sitemap

This rewrite simply redirects /sitemap.xml to the correct location without changing the users address bar.

Was this answer helpful?

 Print this Article

Also Read

Addon Install Instructions

To Install Generic WHMCS Addons, you will need FTP access to your server, and Admin details to...

Addon Upgrade Instructions

Upgrading one of No Half Pixels addon modules for WHMCS is quite straight forward and only...