[osCommerce] Adding custom files to sitemap

Magic SEO URLs for CRE Loaded.
frosch4
Posts: 4
Joined: Tue Apr 28, 2015 1:00 am

[osCommerce] Adding custom files to sitemap

Postby frosch4 » Tue Apr 28, 2015 9:49 am

Hello,

i run a osC 2.3.4 and have several custom pages I would like to add to the (Google) sitemap.
How can this be done?

Heiko

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [osCommerce] Adding custom files to sitemap

Postby inveo » Tue Apr 28, 2015 9:56 am

You can add your custom pages to the MSU Sitemaps in sitemaps/static.php file.

frosch4
Posts: 4
Joined: Tue Apr 28, 2015 1:00 am

Re: [osCommerce] Adding custom files to sitemap

Postby frosch4 » Wed Apr 29, 2015 7:35 am

Thanks for the quick reply: the urls are added now to sitemaps.php.

It is also possible to make the link to these sites in my shop look like the other links?

I mean, instead of:
http://www.my-domain.com/my_custom_page.php?language=fr

this:
http://www.my-domain.com/fr/my_custom_page

frosch4
Posts: 4
Joined: Tue Apr 28, 2015 1:00 am

Re: [osCommerce] Adding custom files to sitemap

Postby frosch4 » Wed Apr 29, 2015 7:55 am

One more question, probably related to the question above:

sitemaps static now has additional entries, like:

http://www.my_domin.com/es/about_us.html

What when I try to call this url I get a "not found" error.

What can I do?
Heiko

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [osCommerce] Adding custom files to sitemap

Postby inveo » Wed Apr 29, 2015 8:51 am

To transform such URLs you will need to change the HTML source and add the Rewrite Rules to your .htaccess file. In the current version there is no automatic way how to do that.

frosch4
Posts: 4
Joined: Tue Apr 28, 2015 1:00 am

Re: [osCommerce] Adding custom files to sitemap

Postby frosch4 » Fri May 01, 2015 8:23 am

And what is the change I need to do in the HTML source?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [osCommerce] Adding custom files to sitemap

Postby inveo » Fri May 01, 2015 8:28 am

It depends where and what link do you want to change.