You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Fitzgibbon <jf...@Galwaylibrary.ie> on 2011/06/10 16:53:37 UTC

[users@httpd] using mod_rewrite to change home page

Hi,

At the moment, I have Apache installed on Linux. I do not have a domain name. I am using the IP address to access the website. I want users to be brought directly to

http://10.10.10.10/greenstone/cgi-bin/library.cgi?site=localhost&a=p&p=about&c=test3&l=en&w=utf-8

when they type in the IP address or, in time, the domain name.

I want to make the Web addresses easier to remember.

I think this is done with mod_rewrite and regular expressions but I can't find the syntax anywhere

Less importantly, I would like

http://10.10.10.10/greenstone/cgi-bin/library.cgi?e=p-01000-00---off-0test3--00-1----0-10-0---0---0direct-10---4-------0-1l--11-en-50---20-about---00-3-1-00-0--4--0--0-0-11-10-0utfZz-8-00&a=d&cl=CL2

to become

http://10.10.10.10/photographers

and

http://10.10.10.10/greenstone/collect/test3/index/assoc/HASH4dbf.dir/Portumna%20Abbey%202.jpg

to become

http://10.10.10.10/images/large/HASH4dbf.dir/Portumna%20Abbey%202.jpg

I would appreciate any help with this.


Regards,

John



John Fitzgibbon



w: www.galwaylibrary.ie

e: info@galwaylibrary.ie

p: 00 353 91 562471

f: 00 353 91 565039


#####################################################################################
This e-mail message has been scanned for  content and cleared 
by MailMarshal Hosted  at Galway County  Council

T� an teachtaireacht r�omhphoist seo scan�ilte d��bhar agus glanta 
ag MailMarshal at� �st�lta i gComhairle Chontae na Gaillimhe.

Correspondance is welcome in Irish or in English.
T� m�le f�ilte roimh chomhfhreagras i nGaeilge n� i mB�arla.

T� eolas at� pr�obh�ideach agus r�nda sa r�omhphost seo 
agus aon iat�n a ghabhann leis agus is leis an duine/na daoine
sin amh�in a bhfuil siad seolta chucu a bhaineann siad. 
Mura seola� th�, n�l t� �daraithe an r�omhphost n� aon iat�n 
a ghabhann leis a l�amh, a ch�ip�il n� a �s�id. 
M� t� an r�omhphost seo faighte agat tr� dhearmad, 
cuir an seolt�ir ar an eolas thr� aischur r�omhphoist 
agus scrios ansin � le do thoil. 
 
This e-mail and any attachment contains information which is 
private and confidential and is intended for the addressee 
only. If you are not an addressee, you are not authorised 
to read, copy or use the e-mail or any attachment. 
If you have received this e-mail in error, please notify 
the sender by return e-mail and then destroy it. 

If you need this email in an alternative format please contact the sender
M� t� an r�omhphost seo ag teast�il uait i bhform�id eile d�an teagmh�il leis an duine a sheol chugat �

#####################################################################################

Re: [users@httpd] using mod_rewrite to change home page

Posted by Eric Covener <co...@gmail.com>.
On Fri, Jun 10, 2011 at 11:40 AM, Yehuda Katz <ye...@ymkatz.net> wrote:
> In order to create pretty/fancy URLs, your program, in this case Greenstone,
> needs to support setting fancy URLs or you need to set up a reverse proxy
> (which is much more complicated than mod_rewite).

This should not normally be necessary, save extremely complicated web apps.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] using mod_rewrite to change home page

Posted by Yehuda Katz <ye...@ymkatz.net>.
On Fri, Jun 10, 2011 at 10:53 AM, John Fitzgibbon <
jfitzgibbon@galwaylibrary.ie> wrote:

>  Less importantly, I would like
>
>
>
>
> http://10.10.10.10/greenstone/cgi-bin/library.cgi?e=p-01000-00---off-0test3--00-1----0-10-0---0---0direct-10---4-------0-1l--11-en-50---20-about---00-3-1-00-0--4--0--0-0-11-10-0utfZz-8-00&a=d&cl=CL2
>
>
>
> to become
>
>
>
> http://10.10.10.10/photographers
>
>
>
> and
>
>
>
>
> http://10.10.10.10/greenstone/collect/test3/index/assoc/HASH4dbf.dir/Portumna%20Abbey%202.jpg
>
>
>
> to become
>
>
>
> http://10.10.10.10/images/large/HASH4dbf.dir/Portumna%20Abbey%202.jpg
>
>
>
> I would appreciate any help with this.
>

In order to create pretty/fancy URLs, your program, in this case Greenstone,
needs to support setting fancy URLs or you need to set up a reverse proxy
(which is much more complicated than mod_rewite).
In a quick bit of research, it does not seem that Greenstone does. You might
want to ask a Greenstone users list. you can find Greenstone support
resources here: http://www.greenstone.org/support

To set up a reverse proxy, you will need to know how the URLs in Greenstone
are created. I understand that the program is open-source and written in C++
and some Java (and maybe more), so you should be able to find that out
without too much trouble.

- Yehuda