logo       

Re: Shorter links solutions: msg#00015

Subject: Re: Shorter links solutions
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe