On Tue, 2005-09-20 at 17:59 -0400, Ken Nordquist wrote:
> Based on the scenario of Matt's first email on the subject:
> > index.php?module=webpage&action=view&id=6&page=2
>
> And my desire to have short URL's like:
> page6-2.html
>
> Perhaps something like this would work:
>
> RewriteRule ^page([1-9][0-9]*)-([1-9][0-9]*).html$
> index.php?module=pagemaster&action=view&id=$1&%{QUERY_STRING}&page=$2&%{QUERY_STRING}
OK... I just tested this on Eloi's Article mod (because that is the
only mod I have available with more than one page) with the following
rewrite rule with phpwebsite 10.1 and it works.
URL = article3-2.html
RewriteRule ^article([1-9][0-9]*)\-([1-9][0-9]*).html$
index.php?module=article&view=$1&%{QUERY_STRING}&page_num=$2&
%{QUERY_STRING}
Which rewrites to:
module=article&view=3&page_num=2
The caveat at this point is that it needs BOTH the article number and
the page number. It is a relatively simple implementation of Eloi's
short URL hack (which works wonderfully and I wholeheartedly endorse!)
Just in case I am being too subtle, I would really like to see an
implementation of short URL's for Fallout.
--
Ken Nordquist
"Did I Do That?"
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
|