[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ic] change displayed URL of results page


 

> -----Original Message-----
> From: suppressed 
> [mailto:suppressed On Behalf Of DB
> Sent: 2006 December 21 -- Thursday 11:20 AM
> To: suppressed
> Subject: [ic] change displayed URL of results page
> 
> Is there anyway to change the URL of a results page from 
> something like:
> 
> http://domain.com/scan/se=AA/sf=category/st=db/sp=results/tf=s
> ku/ml=20.html
> 
> to something like:
> 
> http://domain.com/somethingelse.html ?
> 
> Is this possible with any IC and/or Apache tricks?
> 
> DB

Of course it's possible -- anything is, if you want it badly enough.  =)
Two ways i can think of off the top of my head are ActionMaps and a
little mod_rewrite magic.

Rewrites are pretty simple, but can be effective.  You could, for
example, just match (.*)/your_url(\.html)?$, and rewrite it to
$1/scan/se=category/se=AA/ml=20.  The only real problem is that
more-links on the results page still end up with long, ugly urls.  Only
way around that is to do your own more-links, afaik, and that could
complicate your rewrite rules a bit.

ActionMaps are a bit more involved.  The /scan/... urls are actually
done via an action map (internal to IC?), so of course it's possible to
do your own action that works like /scan.  But since you'd be pretty
much taking over the job that /scan does, you'll likely need to set a
lot of the cgi and search variables yourself (unless someone else knows
of an easier way...).

Another option, if you only care about the search being available via
your url, might be to make a page that just bounces to the /scan... url.
But that's ugly -- among other things, it replaces your nice short url
in the address bar with the /scan... one.
 
--
Daniel Davenport
New Age Digital
http://www.newagedigital.com

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.