[thelist] mod_rewrite problem... again... - SOLVED
Dunstan Orchard
dunstan at 1976design.com
Sat Aug 30 05:12:55 CDT 2003
Ah, a solution!
The people at DigitalSpace.net (the hosts) finally worked it out for me:
On Fri, 29 Aug 2003 16:32:33 -0700, Landon J. Dirgo wrote
> I found the problem with you redirecting. The .htaccess configuration
> had nothing to do with the problem. A new feature "MutliViews" is
> turned on in apache which causes incomplete files to be found and have
> their extension attached. For example if you type in
> digitalspace.net/index looking for index.html it would find the
> correct file (although this option is not enabled on digitalspace.net)
> . Since you were loading the seminars directory and it didn't exist
> the MultiViews function was finding and displaying seminars.php. This
> caused a problem with mod_rewrite and made it appear as though you
> couldn't turn off mod_rewrite. I turned off MultiViews in your
> .htaccess. Make sure that the first line of your .htaccess is always the
> following:
>
> Options -MultiViews
>
> It appears that with the MultiViews option off your .htaccess file is
> working as desired.
What a relief :o)
Thanks for all the help (especially Kelly), I hope this saves someone else a
bit of hair-pulling, it's been bothering me for months and months now.
<tip type="apache">
If you are having problems getting mod_rewrite to run your rules in the
correct order, try turning off Multiviews (a new feature in Apache).
Make sure that the first line of your .htaccess reads:
Options -MultiViews
Multiviews causes incomplete files to be found and have their extension
attached. For example if you type in digitalspace.net/index looking for
index.html it would find the correct file. A useful feature, but it can cause
some problems when using mod_rewrite.
</tip>
Cheers - Dunstan
---------------------------
Dorset, England
http://www.1976design.com/
http://www.orchard.it/
http://www.maccaws.org/
More information about the thelist
mailing list