This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Cubecart SEF URLS - Page Problem
Author
Message |
marty965
Newbie


Joined: 09 August 2010
Location: United Kingdom
Posts: 7
Posted: 09 August 2010 at 9:58am

Hi,

I've used the following as my .htaccess file

[ISAPI_Rewrite]
RewriteCond %{QUERY_STRING} (.*)
RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?$ index.php?
_a=viewCat&catId=$2&$1

RewriteCond %{QUERY_STRING} (.*)
RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?
_a=viewProd&productId=$2&$1

RewriteCond %{QUERY_STRING} (.*)
RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?
_a=viewDoc&docId=$2&$1

RewriteCond %{QUERY_STRING} (.*)
RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?
_a=tellafriend&productId=$2&$1

RewriteCond %{QUERY_STRING} (.*)
RewriteRule _saleItems(\.[a-z]+)? index.php?
_a=viewCat&catId=saleItems&$1 [I,L]

Now the problem is - when I have more than 1 page of
products in a category, the user cannot move onto the
next page. The same first page of products continually
refreshes.

Has anyone got a fix to this?

Thanks
Back to Top Visit marty965's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 10 August 2010 at 2:00am

Firstly, please clarify whether you are using ISAPI_Rewrite 2 or 3.
And please give specific examples of requests that don't work and tell how they should work.

__________________
Regards,
Anton
Back to Top
 
marty965
Newbie


Joined: 09 August 2010
Location: United Kingdom
Posts: 7
Posted: 10 August 2010 at 4:55am

Sorry - I'm using ISAPI_Rewrite 3 (And I thought I'd posted
this in that thread sorry!)

Specific example on one of my stores is that this category
here ( http://www.backingtrackpro.com/00-39-s/cat_12.html )
has 6 pages of products.

When SEF URL's are switched on - you can't browse past the
first page of products - when you click on a page number at
the foot of the procduct list, it only refreshes the first
page of products ( www.backingtrackpro.com/00-39-
s/cat_12.html?page=4 )
Back to Top Visit marty965's Homepage
 
marty965
Newbie


Joined: 09 August 2010
Location: United Kingdom
Posts: 7
Posted: 11 August 2010 at 12:13pm

Hi,

Do I need to post this in the correct thread to get an
answer on this?

Just that I've got my live store with SEF URLs switched on
right now so you can check it out and customers will be
unable to navigate pages.


Thanks
Martin
Back to Top Visit marty965's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 12 August 2010 at 3:44am

Let's try to fix your rules like this:

RewriteBase /

RewriteCond %{QUERY_STRING} (.*)
RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=viewCat&catId=$2&$1 [NC,QSA,L]

RewriteCond %{QUERY_STRING} (.*)
RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=viewProd&productId=$2&$1 [NC,QSA,L]

RewriteCond %{QUERY_STRING} (.*)
RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=viewDoc&docId=$2&$1 [NC,QSA,L]

RewriteCond %{QUERY_STRING} (.*)
RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=tellafriend&productId=$2&$1 [NC,QSA,L]

RewriteCond %{QUERY_STRING} (.*)
RewriteRule _saleItems(\.[a-z]+)? index.php?_a=viewCat&catId=saleItems&$1 [I,L] [NC,QSA,L]

__________________
Regards,
Anton
Back to Top
 
marty965
Newbie


Joined: 09 August 2010
Location: United Kingdom
Posts: 7
Posted: 12 August 2010 at 3:58am

Hi There,

Just tried this - the next page URL gets written like this
now

http://www.backingtrackpro.com/cat_.html?.html&19=&page=1

And it causes an error when you move onto the next page

see here -
http://www.backingtrackpro.com/country/cat_19.html and
click onto page 2 of the product list
Back to Top Visit marty965's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 12 August 2010 at 4:47am

Could you please clarify how should the real URL for the N-th page look like.

And why your SEF rules look like this http://www.backingtrackpro.com/cat_.html?.html&12=&page=1?

__________________
Regards,
Anton
Back to Top
 
marty965
Newbie


Joined: 09 August 2010
Location: United Kingdom
Posts: 7
Posted: 12 August 2010 at 4:53am

The URL should be like this

http://www.backingtrackpro.com/cat_19.html?page=1

I have no idea why the SEF rules are creating a URL like
that?!
Back to Top Visit marty965's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 12 August 2010 at 5:13am

"I have no idea why the SEF rules are creating a URL like that?!"
- do you mean the SEF rules you provided above? or you have more?
The thing is that above RewriteRules cannot transform links on pages, so that might be smth else.

__________________
Regards,
Anton
Back to Top
 
marty965
Newbie


Joined: 09 August 2010
Location: United Kingdom
Posts: 7
Posted: 12 August 2010 at 6:13am

Hi There,

Just tried this - the next page URL gets written like this
now

http://www.backingtrackpro.com/cat_.html?.html&19=&page=1

And it causes an error when you move onto the next page

see here -
http://www.backingtrackpro.com/country/cat_19.html and
click onto page 2 of the product list
Back to Top Visit marty965's Homepage
 
marty965
Newbie


Joined: 09 August 2010
Location: United Kingdom
Posts: 7
Posted: 12 August 2010 at 6:18am

Sorry - posted a previous post.

I don't have more rules not - those are the only ones
being used.

I just employed these and let the cubecart engine do it's
thing.

I assumed it was the rules which rewrote the links - how
come they've changed then now that this new rule set
you've suggested is being used?

It's gone from:-

www.backingtrackpro.com/00-39-s/cat_12.html?page=4

To

www.backingtrackpro.com/cat_.html?.html&19=&page=1
Back to Top Visit marty965's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 13 August 2010 at 2:47am

Can I have an RDP access to your server to try find the problem?
Or can we arrange an online meeting?
It would be much easier and quicker.
Please choose the most suitable way for you and provide credentials to [email protected]

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum