mod rewrite - Strange 404 error - trying to avoid with .htaccess -


i've got simple web site in trap 404 errors , 1 that's started coming through trying access /home/sycamore/public_html/...valid url... instead of /...valid url...

obviously /home/sycamore/public_html/ file path site lives firstly, how on earth request being generated. can find nothing in code , yet happening in 1 area that;s been added. idea can caused this?

in attempt avoid i've added rule .htaccess file starts

options +followsymlinks rewriteengine on rewriterule    ^/home/sycamore/public_html/(.*)$    /$1 [r,l] 

however, doesn't appear anything, i'm still getting 404 reported on /home/sycamore/public_html/...valid url... although there many other rewrite , redirect rules in .htaccess work perfectly.

any ideas (1) why problem might there in first place , (2) why htaccess attempt 'correct' url failing?

i add of requests url coming search bots; google, yahoo, etc. , there no mention of /home/... in sitemap.xml file.

i'm pretty sure original cause down redirects in htaccess file redirecting non-existent page and, assume, causing generate sort of error.

still no idea why attempted fix rewrite url didn't work mending htaccess file have got rid of lot of problems (though there still unaccounted ones).


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -