mod_rewrite / comprehensive redirects
Zbigniew Szalbot
z.szalbot at lc-words.com
Fri Jul 4 17:05:09 UTC 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2864 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080704/83e39a95/smime.bin
More information about the freebsd-questions
mailing list