Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jul 2008 19:05:04 +0200
From:      Zbigniew Szalbot <z.szalbot@lc-words.com>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   mod_rewrite / comprehensive redirects
Message-ID:  <486E5840.5090408@lc-words.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Dear all,

I know this is not Apache's mailing list, but there are so many experts 
here that I hope someone can help me. I have the following rule:

RewriteRule ^\.*$ /new/index.html

This redirects the base domain to a file called index.html in 'new' folder.

However, what I would really like to achieve is to redirect every php 
file to /new/index.html, which currently does not work.

I tried modifying the rule like this:

RewriteRule ^\.php$ /new/index.html

However, this rule matches nothing (or at least does not redirect).

How should I accomplish this? I just need to redirect all hits to 
/new/index.html until a new site is ready.

Many, many thanks in advance!

-- 
Zbigniew Szalbot
www.LCWords.com

[-- Attachment #2 --]
0	*H
010	+0	*H
0b0ˠ{KL/GY`0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080426152039Z
090426152039Z0H10UThawte Freemail Member1%0#	*H
	z.szalbot@lc-words.com00
	*H
0rep%'#Ouu);3Q{e摶y EU<>._$u}j_yӚMfO|y\=h!bTKky3	
.d?ge(zz3010!U0z.szalbot@lc-words.com0U00
	*H
wm_Uϩ^C{cdl8j*?)zLLoZ~h:b3
CjRm6?JqL/jA02&yG(	Q[$f060b0ˠ{KL/GY`0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080426152039Z
090426152039Z0H10UThawte Freemail Member1%0#	*H
	z.szalbot@lc-words.com00
	*H
0rep%'#Ouu);3Q{e摶y EU<>._$u}j_yӚMfO|y\=h!bTKky3	
.d?ge(zz3010!U0z.szalbot@lc-words.com0U00
	*H
wm_Uϩ^C{cdl8j*?)zLLoZ~h:b3
CjRm6?JqL/jA02&yG(	Q[$f060?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO100v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA{KL/GY`0	+0	*H
	1	*H
0	*H
	1
080704170504Z0#	*H
	1G䰙א4g+j\Y0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+71x0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA{KL/GY`0*H
	1xv0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA{KL/GY`0
	*H
H0Ir)+x!%r{
R:V8*c`3{O3Wpl|9g/7_A?V8\SlyX5Y Q֡(Dņ
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?486E5840.5090408>