New Zenner
- Join Date:
- Jan 2009
- Posts:
- 5
- Plugin Contributions:
- 0
htaccess redirect for specific pages
I've found several discussions on htaccess redirects, but none that answer my questions. Hopefully, someone knows how to do this.
My client's site already had an html site and a contact page prior to zencart being installed and he wants to keep these. There are a couple of things I want to do to ensure visitors reach the correct pages.
-
index.php - I would like that and only that to redirect to another page. Obviously, everything is built off of this file, so it's tricky. I want /catalog/index.php to redirect but I of course do not want index.php?main_page=... to redirect. I made it work in the robots.txt file by adding a $. It just doesn't work in htaccess.
-
index.php?main_page=contact_us - I would like that to redirect, but I just can't make it work. I have read that the ? and = are tricky, I just can't find the answers to it.
Any thoughts on each of these?
FYI - For those that have other suggestions or workarounds, I've already hidden these pretty well - it's mostly for that one guy that likes to play with URLs and manually type in /catalog/index.php - I already have an index.html with a redirect to the non zen cart home page for the catalog folder, but I want to do the same for one who types in the index.php, too.
Same with the Contact_Us - I think I've changed all of the files to use the non Zen contact page, but just in case I missed one, I would like it to redirect so we don't have to worry about it.