[ic] Making store popup without redirect

Joe Moschak interchange-users@interchange.redhat.com
Thu Dec 6 11:48:01 2001


I had been wondering the same thing: how to get the catalog to come up 
as the main page.  I tried Dan's httpd.conf changes below and couldn't 
get them to work.  I tried adding a RewriteCond still to no avail.  I 
finally got it to work by adding the following line to the VirtualHost 
section of httpd.conf:

Redirect /index.html 
 http://www.mydomain.com/cgi-bin/mycatalogname/index.html

thanks to

http://www.linuxgazette.com/issue61/nielsen2.html

I suspect there are better and faster ways to do this.  In particular, 
it'd be nice if I didn't have to repeat my domain name.

Redirect /index.html  /cgi-bin/mycatalogname/index.html

for example, didn't work.  Of course, I don't think that's the way the 
Redirect command works.  I suspect there's a performance penalty for 
requiring the browser to re-resolve the domain name, but I'm not sure.

I'm not sure why Dan's changes didn't work for me.  Maybe these don't 
work if you put them in the VirtualHost section like I did.  For what 
it's worth,

http://www.engelschall.com/pw/apache/rewriteguide/#ToC6

suggests

RewriteRule   ^/$ /e/www/  [R]

not

RewriteRule     ^/$     /cgi-bin/e/index.html  [PT,L]

(note the different parameters "R" instead of "PT,L" in square 
brackets).  I couldn't get it work either way.

Thanks, Dan, for pointing me in the right direction.

Joe Moschak

Dan Browning wrote:

>>On Tue, 27 Nov 2001 steve@moddepot.com wrote:
>>
>>>>How can I make my domain point right to the store. right 
>>>>
>>now I have a 
>>
>>>>index.html which redirects to the store. but the search 
>>>>
>>engines don't 
>>
>>>>like this. how can I make the store come right up with my 
>>>>
>>domain. also 
>>
>>>>where can I add meta tags on the foundation? just but them in the 
>>>>index.html page? or what. thanks in advance
>>>>
>>An interesting question....
>>
>>I got around it by putting up a small index page directly at 
>>the domain name. At the top of that I put all of my meta tags 
>>for search engines to hit on and pick up. This page also has 
>>all of the criteria for the new Internet Explorer security 
>>stuff so that it all gets done and over right there.
>>
>>I have a meta tag that causes that page to go away after 10 
>>seconds and bring on the main IC page through the cgi-bin 
>>directory. Thee is also a clickable link at the bottom of the 
>>page if someone is in a hurry.
>>
>>-= Jim =-
>>
>
>I feel bad for being so terse with Steve, so here's the apache code to
>do a redirect (though a staticly-built index.html which links to the
>cgi-bin is faster).
>
>RewriteEngine On
>
># matches on http://myhost.com
>RewriteRule     ^$      /cgi-bin/e/index.html  [PT,L]
>
># matches on http://myhost.com/
>RewriteRule     ^/$     /cgi-bin/e/index.html  [PT,L]
>
># don't change URLs like /cgi-bin/*
>RewriteRule     ^/cgi-bin/.* -               [PT,L]
>
>HTH,
>
>Dan Browning
>Kavod Technologies
>
>
>_______________________________________________
>interchange-users mailing list
>interchange-users@interchange.redhat.com
>http://interchange.redhat.com/mailman/listinfo/interchange-users
>
>