Zen Follower
- Join Date:
- Oct 2007
- Posts:
- 241
- Plugin Contributions:
- 0
Post #1 by donn
Hi....
I've been reading up about .htaccess redirect commands.
What I am trying to do is this:
Redirect ALL pages from:
oldsite.com/Cart/ZCFiles
and
to
newsite.com/ZCfiles
What I tried is this:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^oldsite.com/Cart(/)?$ http://newsite.com(/)?$ [R=301, L]
RewriteRule ^oldsite.com/Cart(/)?$ http://newsite.com(/)?$ [R=301, L]
But...it didn't work. :(
I have read a bunch from Apache and other sites, but can't find the answer. Anyone with a link to info or a clue would be appreciated.
(Looking at another .htaccess set of commands that are listed on the Zen Cart Community forum elsewhere makes me wonder if I handled the subdirectory part correctly, or if I'm WAY off!!)
# redirects any URL that includes: /images/wp- with 'wp-' being anything that ends with '.php'
# this allows for images named such as 'wp-header.jpg' to work
RedirectMatch Permanent ^/(.*[images]+)/(wp-.*\.php)$ /page_not_found.php
I know the function of this is different, but I see the subdirectory part is handled way differently than what I attempted.