Re: OT apache question

From: Alexander Dalloz (ad+lists_at_uni-x.org)
Date: 11/30/04

  • Next message: Rahul Sundaram: "Re: What happened to gqview"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Tue, 30 Nov 2004 21:05:39 +0100
    
    
    
    

    Am Di, den 30.11.2004 schrieb Alexander Dalloz um 19:45:

    > Something like that?
    >
    > RewriteEngine on
    > RewriteCond %{REQUEST_URI} !index\.html$ [NC]
    > RewriteCond %{REQUEST_URI} !^$
    > RewriteRule ^(.*)$ http://www.domain.name/index.html
    > [R=301]

    RewriteEngine on
    RewriteLog /var/log/httpd/rewrite.log
    RewriteLogLevel 0
    RewriteCond %{REQUEST_URI} !^/index\.html$ [NC]
    RewriteRule ^(.*)$ http://www.domain.name/index.html
    [R=301]

    That should be better. Works too with a redirect to the main index.html
    page if the you call http://www.domain.name/subfolder/index.html.

    Alexander

    -- 
    Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
    legal statement: http://www.uni-x.org/legal.html
    Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp 
    Serendipity 21:05:25 up 10 days, 15:52, load average: 0.12, 0.45, 0.49 
    
    

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: Rahul Sundaram: "Re: What happened to gqview"

    Relevant Pages

    • Re: .htaccess and PHP
      ... "Nel" wrote in news:DwGxc.12894$NK4.1841718 ... > I am using .htaccess to allow a web site to translate example.html to ... I redirect alias domains and domains without www. in front to my main ... RewriteEngine On ...
      (comp.lang.php)
    • Re: New worm protection
      ... >> Lo and behold, Ian Smith once said: ... >> RewriteEngine on ... there's no reason to redirect back to your own server. ...
      (FreeBSD-Security)
    • Re: site:site.com vs. site:www.site.com
      ... I have the first script above that you suggested running now. ... to work like my original script. ... does not redirect but all the usual URL versions do redirect. ... RewriteEngine On ...
      (alt.internet.search-engines)
    • Re: page rank and the www prefix
      ... >>> RewriteEngine On ... > I was in a rush. ... if the host is *not* what we want, redirect, which is ... if the host is *equal* to what we don't want, ...
      (alt.internet.search-engines)
    • Re: Rewrite Rule Help
      ... RewriteEngine on ... So it will redirect www.ABC.com to www.XYZ.com but our developer has the requirement to redirect ... Clemson University Math Sciences ...
      (Fedora)