Welcome to WebmasterWorld Guest from 34.204.173.36

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

htaccess help

htaccess help needed

     
8:52 pm on Nov 21, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 24, 2007
posts: 51
votes: 0


Hello,
Having a problem where my server is redirecting
pages that no longer exist to pages that are similar.
Need to edit my htaccess to prevent this but don't quite know
how.
for example
http://www.example.com/example/hotel.htm

a page that no longer exists, is fowarding to:

http://www.example.com/example.htm

a page I do not wish it to forward to

This is occurring similarly with all pages on my site that
no longer exist.

Thanks

If you need more details I can pm you the actual pages
and directories if this would be more helpful.

12:30 am on Nov 22, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


One thing to try is to add

Options -Multiviews

to your top-level .htaccess file. This disables the auto-search feature of Apache mod_negotiation.

Other than that, what version Apache are you running?

Jim

3:37 pm on Nov 23, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 24, 2007
posts: 51
votes: 0


That appears to have worked like a charm,

Thank you so much for your help.