Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Headache of a rewrite problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Steve2507
Newbie
Newbie


Joined: 15 May 2007
Online Status: Offline
Posts: 13
Posted: 24 August 2008 at 4:52pm | IP Logged Quote Steve2507

Hi,

I'm having problems getting a rewrite to work.

The url is:

shopdisplayproducts.asp?id=5653&catlinks1=sexy-lingerie&prodlinks1=sexy-camisoles&sortorder=potherthree&page=8&pagesize=10

and I'm trying to get it to rewrite to:

p/5653/sexy-lingerie/sexy-camisoles/potherthree_8_10.html

The coloured sections tally to each other.

The rule I've written is:

RewriteRule p/(\d+)/([^/?]+)/([^/?]+)/([^/?]+)_(\d+)_(\d+).html /shopdisplayproducts.asp\?id=$1&catlinks1=$2&prodlinks1=$3&sortorder=$4&page=$5&pagesize=$6 [I,L]

Please help before it drives me up the wall.

Thanks,

Steve

Back to Top View Steve2507's Profile Search for other posts by Steve2507
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 673
Posted: 26 August 2008 at 9:46am | IP Logged Quote Vyacheslav

Hi.
Please try these rules:
Code:
RewriteRule ^/p/(\d+)/([^/?]+)/([^/?]+)/([^/?]+)_(\d+)_(\d+)\.html$ /shopdisplayproducts.asp\?id=$1&catlinks1=$2&prodlinks1=$3&sortorder=$4&page=$5&pagesize=$6 [I,L]


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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