Kryptronic Software Support Forum

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.

#1 09-15-2009 14:32:54

nigel
Member
From: Peterborough, UK
Registered: 04-27-2008
Posts: 418
Website

rewrite problem

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

 

#2 09-15-2009 15:00:30

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: rewrite problem

It would be best to escape all periods (.) in the url

Code:

^Pram-Tyre$ /ecom-prodshow/tyre3011\.html

John

Offline

 

#3 09-15-2009 15:17:16

nigel
Member
From: Peterborough, UK
Registered: 04-27-2008
Posts: 418
Website

Re: rewrite problem

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

 

#4 09-15-2009 16:53:53

OutcastGirls
Member
From: New York, NY
Registered: 07-16-2009
Posts: 219

Re: rewrite problem

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 smile

Offline

 

#5 09-15-2009 17:05:42

nigel
Member
From: Peterborough, UK
Registered: 04-27-2008
Posts: 418
Website

Re: rewrite problem

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

 

#6 09-15-2009 18:19:15

OutcastGirls
Member
From: New York, NY
Registered: 07-16-2009
Posts: 219

Re: rewrite problem

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

 

Board footer