NYCPHP Meetup

NYPHP.org

[nycphp-talk] Howto create custom URLs

Alvaro P. apg88zx at gmail.com
Mon Mar 19 10:49:35 EDT 2007


Has anyone used mod_rewrite with lighttpd?
I tried to use it but can't get it to work.

Alvaro

Donald J Organ IV wrote:
> P.S.   mod_rewrite is usually enabled or can be enabled on any simple 
> hosting plan that is using apache, if you encounter a host that uses 
> apache and wont turn it on, i would suggest finding another host.
>
> Donald J Organ IV wrote:
>> This is done via mod_rewrite:
>>
>> apache 1.x
>> http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
>>
>> apache 2.x
>> http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
>>
>>
>> The PHP script still see the page as 
>> myhost.com/index.php?act=700&eventid=4e732ced3463d06de0ca9a15b6153677 
>> you just tell apache how to process myhost.com/MayEvent07
>>
>>
>>
>> Ben Sgro (ProjectSkyline) wrote:
>>> Hello All,
>>>  
>>> Currently I have a software package that creates URLS in this manner:
>>> myhost.com/index.php?act=700&eventid=4e732ced3463d06de0ca9a15b6153677
>>>  
>>> Which is the action to take and event id (md5 hash).
>>>  
>>> Now, I want to make this a bit more user friendly and create URLs like:
>>> myhost.com/MayEvent07
>>>  
>>> Is this done via an apache mod? or can I do this in PHP ... The app 
>>> is developed on my company server,
>>> so special configurations are not a problem. However, its a software 
>>> product, that will be deployed on hosting
>>> company servers, so I'm not sure if I will have the ability to run 
>>> apache mods (if that's the answer).
>>>  
>>> Thanks!
>>>  
>>> - Ben
>>>  
>>> ProjectSkyline.com
>>> Ben Sgro - Chief Engineer
>>> ben at projectskyline.com <mailto:ben at projectskyline.com>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> New York PHP Community Talk Mailing List
>>> http://lists.nyphp.org/mailman/listinfo/talk
>>>
>>> NYPHPCon 2006 Presentations Online
>>> http://www.nyphpcon.com
>>>
>>> Show Your Participation in New York PHP
>>> http://www.nyphp.org/show_participation.php
>>>   
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> New York PHP Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>> NYPHPCon 2006 Presentations Online
>> http://www.nyphpcon.com
>>
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php




More information about the talk mailing list