Zen Cart Logo
Forums / General Questions / Remove certain categories/sub categories from sitemap

Remove certain categories/sub categories from sitemap

Views: 1,420

Results 1 to 5 of 5
26 Mar 2012, 7:50 PM
#1
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Remove certain categories/sub categories from sitemap

Hi,

Can anyone suggest how to remove specific categories and sub categories from default sitemap and sitemapxml?

I know how to remove other unwanted pages however the categories etc seem to be a different ball game

Thanks

26 Mar 2012, 8:40 PM
#2
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Remove certain categories/sub categories from sitemap

If removing categories etc from sitemap is difficult can anyone help with redirecting outdated urls?

I have tried using the following code in .htaccess however it is not working...

# Needed before any rewriting
RewriteEngine On

## 301 Redirects
# 301 Redirect 1
RewriteCond %{QUERY_STRING}  ^main_page=FILENAME_ABOUT_US$ [NC]
RewriteRule ^index\.php$ /index.php?main_page=about_us [R=301,NE,NC,L]
27 Mar 2012, 8:51 AM
#3
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Remove certain categories/sub categories from sitemap

anyone? :blink:

28 Mar 2012, 10:09 AM
#4
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Remove certain categories/sub categories from sitemap

Surely someone can shed some light on this? The normal 301 redirects code for obsolete urls doesnt work in .htaccess. Does anyone know why? Is it someway that Zen cart creates the urls??

30 Mar 2012, 7:52 PM
#5
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Remove certain categories/sub categories from sitemap

moesoap:

Surely someone can shed some light on this? The normal 301 redirects code for obsolete urls doesnt work in .htaccess. Does anyone know why? Is it someway that Zen cart creates the urls??

For anyone else struggling with this, the answer can be found here...
http://www.zen-cart.com/forum/showthread.php?t=150173&page=2