httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] how to externally redirect?
Date Wed, 20 Sep 2017 17:47:21 GMT
I meant read it an editor of your choice to see how it's done.

On Wed, Sep 20, 2017 at 11:21 AM, eeadev dev <eeadev@gmail.com> wrote:
> shall I import the mod_alias.c file in my project or if I install the module
> mod_alias.c, I can use its functions?
>
> 2017-09-20 16:34 GMT+02:00 Eric Covener <covener@gmail.com>:
>>
>>
>>
>> On Wed, Sep 20, 2017 at 10:31 AM, eeadev dev <eeadev@gmail.com> wrote:
>>>
>>> how can I redirect externally from my module?
>>
>>
>> Have a look at how fixup_redir() in mod_alias.c works. Set a Location
>> header and return 301/302/...
>> Note: This may only work in certain hooks (fixup and handler definitly)
>>
>



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message