This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
LinkFreeze (Forum Locked Forum Locked)
 Helicon Tech : LinkFreeze
Subject Topic: to map a single file (Topic Closed Topic Closed)
Author
Message |
redbaron76
Newbie


Joined: 04 May 2008
Posts: 6
Posted: 04 May 2008 at 6:49pm  

Hello, is it possible to map just a single file?

For example....
I have:

/news.asp?id=10&title=Hello_World

and I would like to map just this file changing it to:

/news_id_10_title_Hello_World.htm

Which pattern have I to set?
tnx

Back to Top
 
Sergey
Admin Group


Joined: 11 March 2005
Posts: 750
Posted: 05 May 2008 at 8:24am  

Please, try this rule:

/ ___ .asp /news.asp.*     [MoveExt]
Back to Top
 
redbaron76
Newbie


Joined: 04 May 2008
Posts: 6
Posted: 05 May 2008 at 8:37am  

Thanks but...

It doesn't work

Back to Top
 
redbaron76
Newbie


Joined: 04 May 2008
Posts: 6
Posted: 05 May 2008 at 8:38am  

This is my rule in the .ini file:

/news.asp.*  ___ .asp  [MoveExt,AbsLinks]

...and it doesn't work

Back to Top
 
Sergey
Admin Group


Joined: 11 March 2005
Posts: 750
Posted: 05 May 2008 at 9:42am  

"Hello_World" parameter contains a separating character "_". You should replace '_' with another character, for example '-'

The rule that will process requests only to news.asp looks like:
@/news.*\.htm --- .asp [MoveExt]
Back to Top
 
redbaron76
Newbie


Joined: 04 May 2008
Posts: 6
Posted: 05 May 2008 at 1:02pm  

Nothing to do...

It doesn't work

Is there possible to map rules just on a single file?
It seems not...

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 06 May 2008 at 4:08am  

Can you please provide examples for "map rules just on a single file". As it is not quite clear what do you want to be done.

__________________
Regards,
Anton
Back to Top
 
redbaron76
Newbie


Joined: 04 May 2008
Posts: 6
Posted: 06 May 2008 at 8:29am  

I would like to apply a rule just to one file.
Is it possibile?

For ex:

http://www.summerlabfestival.com/news.asp
to
http://www.summerlabfestival.com/news.htm

and to leave all other files .asp

Tnx

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 06 May 2008 at 9:58am  

Please use the following rule:

@/news.*\.htm ---.asp @.*news\.asp.* [MoveExt,AbsLinks]

And correct your links <a href="?do=zoom&id=4" to this format <a href="news.asp?do=zoom&id=4"

__________________
Regards,
Anton
Back to Top
 
redbaron76
Newbie


Joined: 04 May 2008
Posts: 6
Posted: 06 May 2008 at 3:32pm  

Nothing to do...
It doesn't seem to work...

What to write in the Directory pattern?

What in the Advanced settings?

tnx

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