Reply to ReWriteRuel and Regular Expressions

Your name:

Reply:


Posted by jason on 09/20/05 03:02

Hi folks,

My apologies if this is the wrong group to post to on this subject, and
any guidance to the correct group would be appreciated.

I am attempting to create a RewriteRule entry [for URL rewriting] and I
am uncertain if what I would like is even possible.

Assuming a URL of the format abc_def_hij.html is requested, and need to
be written as script.php?x=abc&x=def&x=hij, I can do regexp to
successfully do the rewrite on that.

The problem is that the number of words with underscore separators is
unknown, so I could need to rewrite abc_def.html, or
abc_def_hij_klmnop_qrst_tuv_wxyz.html - I won't have knowledge of the
request in advance (although there will be a practical limit of no more
than about 10 "parameters" in total.)

Is there a regexp that can help out in this instance, or should I tell
the client his hopes and dreams have been mercilessly shattered? ;-)

Elmo

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация