Originally Posted by
ocmusic
constantly changing pages
Not sure exactly what you mean by "changing pages". By "pages", are you actually talking about categories? That's somewhat implied in the rest of your post, but it's a bit unclear, for reasons I will explain:
Originally Posted by
ocmusic
Some of the older pages have already been ranked with google, which is great but the viewer is directed to my website page with a message saying "that page was not found".
The proper 'page not found' message only occurs when someone clicks a link to a page that actually doesn't exist. Such as index.php?main_page=fred or no_page_here.php
It does *not* appear when someone clicks a link to a removed category. If you've removed a category, the visitor sees a simple "No products in this category" message, and the search engine is also told in the background to remove this page from their index so they don't keep providing it in search results.
Originally Posted by
ocmusic
I'm curious to know if there is anyway you can direct outdated pages to your home page. So if the url is mywebsite.com//index.php?main_page=index&cPath=22 and that page is no longer a valid page in my website, I'd like to redirect it back to the home page.
But, if you really want to blindly push your visitors to the home page instead of telling them that the link they clicked (or more importantly that maybe they had bookmarked) is invalid, you could make the following coding change to /includes/modules/pages/index/header_php.php around line 55:
Code:
if ($category_depth == 'products' && $listing->RecordCount() == 0) /* $robotsNoIndex = true; */ zen_redirect(zen_href_linkFILENAME_DEFAULT));
Bookmarks