httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g.l...@itcilo.org
Subject Re: [users@httpd] redirect all to index.html
Date Thu, 10 Feb 2005 15:07:55 GMT
Strange. why do you want to do it?

Anyway, supposing that the images are in the "images" folder, something 
like that could work

    RewriteEngine on
    RewriteLog /var/log/apache2/digitalpartner-rewrite.log
    RewriteLogLevel 2
    RewriteRule ^/images/(.*) /images/$1 [L,PT]
    RewriteRule ^/(.*) http://www.digitalpartners.com/index.html [L,P]

gaƫl

Preston Podaril <ppod@ispi.net> wrote on 10/02/2005 16.01.12:

> Sorry it is to early in the morning.  My redirect is actually this:
> 
> Redirect !/index.html http://www.digitalpartners.com/index.html
> 
> 
> Preston Podaril wrote:
> > I want to redirect all requests to a particular domain to index.html 
> > such as all requests to www.digitalpartners.com to 
> > www.digitalpartners.com/index.html
> > 
> > I had setup a rewrite that worked, but broke all images on the page 
> > because it was rewriting anything that wasn't index.html to that.  Now 
I 
> > have a redirect, but I am not sure why it won't work, it seems obvious 

> > to me, but I guess not.
> > 
> > Redirect !/index.html http://www.digitalpartners.com/pages/index.html
> > 
> > ---------------------------------------------------------------------
> > 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
> > 
> > 
> > 
> > !DSPAM:420b76b896731309263494!
> > 
> > 
> > 
> 
> ---------------------------------------------------------------------
> 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
> 


---------------------------------------------------------------------
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


Mime
View raw message