You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi,
I can't seem to figure out the rewrite rules for ccp7. I can get them working for "cms-display" but not for "ecom-catshow" or "ecom-prodshow". Here is my htaccess code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^/$ /cms-display/splash.html
RewriteRule ^cms-display/splash\.html$ http://www.pushchair-tyres-online.co.uk/ [L,R=permanent]
RewriteRule ^Store-Policies$ /cms-display/storepolicies.html
RewriteRule ^cms-display/storepolicies\.html$ http://www.pushchair-tyres-online.co.uk/Store-Policies [L,R=permanent]
RewriteRule ^Company-Details$ /cms-display/companyinfo.html
RewriteRule ^cms-display/companyinfo\.html$ http://www.pushchair-tyres-online.co.uk/Company-Details [L,R=permanent]
RewriteRule ^Pram-Tyre$ /ecom-prodshow/tyre3011.html
RewriteRule ^ecom-prodshow/tyre3011\.html$ http://www.pushchair-tyres-online.co.uk/Pram-Tyre [L,R=permanent]
RewriteRule ^(.*)-(.*)/(.*)\.html index.php?app=$1&ns=$2&ref=$3 [L,PT]
The first 3 sets of rules work fine, but not the ecom-prodshow (Pram Tyres). Am I missing something obvious? I had it working perfectly in ccp6 on all my categories and about 100 products.
Nigel
Offline
Hi John,
thanks for getting back to me, unfortunately it didn't make ay difference.
The original re-write rule I was using does redirect me to the correct page but does not show the product details, just the following message:
"The page requested could not be located. Please make a selection from the menu to continue."
Nigel
Offline
This is what I have in my .htaccess:
RewriteRule ^ecom-prodshow/Awareness-11\.html$ http://www.outcastgirls.com/Awareness-11 [L,R=permanent]
RewriteRule ^Awareness-11$ ecom-prodshow/Awareness-11\.html
Based on the example above, your rewrite rule should look like this:
P.S. I'm just a copy-cat... I don't really know anything about rewrite rules
Offline
Thanks for that, I really appreciate it and it worked a treat (I had to tweak it slightly).
Here is what I ended up with
RewriteRule ^ecom-prodshow/tyre3011\.html$ http://www.pushchair-tyres-online.co.uk/Pram-Tyre [L,R=permanent]
RewriteRule ^Pram-Tyre$ ecom-prodshow/tyre3011\.html
thanks again
Nigel
Offline
That's right, the second rule should be
and not
Sorry, I mixed it up a little but I'm glad you figured it out.
Last edited by OutcastGirls (09-15-2009 18:25:12)
Offline