Forum Moderators: phranque

Message Too Old, No Replies

htaccess help

htaccess help needed

         

DannyTweb

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

10+ Year Member



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.

jdMorgan

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

WebmasterWorld Senior Member 10+ Year Member



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

DannyTweb

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

10+ Year Member



That appears to have worked like a charm,

Thank you so much for your help.