Forum Moderators: phranque

Message Too Old, No Replies

Can't use "story" in RewriteRule

         

anjanesh

4:04 am on Aug 9, 2009 (gmt 0)

10+ Year Member



This happens on my local Ubuntu PC - not on my server or elsewhere.

RewriteRule ^story$ index.html
RewriteRule ^story\/(.*)\.html$ index.html?mode=view&ID=$1

[local.mydomain.com...]
The requested URL /story/151-49.html was not found on this server.

But if I change "story" in my .htaccess to any-other-name, then [local.mydomain.com...] works !

/var/logs/apache2/error
[Sun Aug 09 09:28:03 2009] [error] [client 127.0.0.1] Negotiation: discovered file(s) matching request: /home/username/vhosts/mydomain.com/story (None could be negotiated)., referer: [local.mydomain.com...]

Anything but "story" should be used ! Any reason why this is happening ?

Thanks

Caterham

12:58 pm on Aug 9, 2009 (gmt 0)

10+ Year Member



Any reason why this is happening ?

Search the apache docs for mod_negotiation and MultiViews. If you don't use MultiViews (which you apparently don't), search your httpd.conf for
MultiViews
and remove it.