This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: Mapping URLs from CMS System (Topic Closed Topic Closed)
Message |

Joined: 11 June 2007
Location: United Kingdom
Posts: 1
Posted: 11 June 2007 at 8:07am  


We use a CMS system.  Our URLs look like this:

We would like instead to have:

I understand in principle that Rewrite can do this.

The CMS product allows us to add new pages easily, all Content is stored in a database and we only have ONE actual file - i.e. MyPage.ASP.

I can enhance the database to include a "Friendly URL Name" in addition to the PAGE number.

How would I get the Rewrite to "know" about new pages?

Or do I just get Rewrite to rewrite the URL to NewPage.ASP with the original, friendly, URL as a Parameter, and then NewPage.ASP can look up the parameter in the Database and work out what the PAGE number is?



Back to Top
Admin Group

Joined: 15 August 2002
Posts: 6520
Posted: 11 June 2007 at 9:49am  

Your last assumption would be the best, but it depends on your CMS system. From ISAPI_Rewrite site the rule would be like that:

RewriteRule /([^/]+)(?:/([^/]+))?/? /MyPage.ASP\?PAGE=$1(?2&PRODUCT=$2) [I,L]

Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage

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