Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: rewriterule help Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
duey
Newbie
Newbie


Joined: 13 August 2008
Online Status: Offline
Posts: 2
Posted: 13 August 2008 at 11:20pm | IP Logged Quote duey

Hi,

I'm trying out ISAPI Rewrite Lite, and am at a lost for how to accomplish the following, and would appreciate any help:

Original URL:  subdomain.domain.com/main.php/xxxx/xxxx/xxxx/xxxx

The "xxxx" are queries that have been converted into extra-path, so the actual instances of "xxxx" in any given URL is dynamic.

We want the Original URL to become:

subdomain.domain.com/main/xxxx/xxxx/xxxx/xxxx

I've played around with different regexp with no success, mostly because of the dynamic number of "xxxx".  Thanks for your help.

Back to Top View duey's Profile Search for other posts by duey
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 14 August 2008 at 7:24am | IP Logged Quote Anton

Please try to use the following rules:

RewriteBase /
RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com$ [NC]
RewriteRule ^main/([^/]+/[^/]+/[^/]+/[^/]+)$ main.php/$1 [NC,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

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 can vote in polls in this forum