Click to See Complete Forum and Search --> : URL not followed by a '/' takes to another page


nutsaboutlinux
04-28-2004, 04:10 AM
Hi there!

I'm faced with a strange problem after I shifted the server of one of my sites. When I type a particular url (of a directory of the sub-doamin of the site), then it redirects to a page which doesn't exist at all if not folloed by a backslash. Here's what I mean concisely-

http://sub-domain.mysite.com/directory/- works fine.

http://sub-domain.mysite.com/directory - redirects to www.mysite.com/directory, which actually doesn't exist.


This is driving me nuts and I have no idea what to do. I'll be grateful if someone here could come up with the error and the possible fix. I'm not too familiar with hosting so kindly explain a bit in lenght or refer me some resources where I can learn about the problem and the possible solutions.

Thanks and regards,

Nuts about Linux.

mdwatts
04-28-2004, 01:28 PM
Sorry as I have no idea why that is happening, so I'll just post these G4L search results for 'apache trailing backslash' (http://www.google.com/linux?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=apache+trailing+backslash&btnG=Google+Search) in hopes you can find the answer.

Anyone else?

Syngin
05-10-2004, 12:23 PM
Not 100% sure but some sites have taken to parsing url parameters with a '/' rather than a '?' to make them more search engine friendly. Ie fool the engine into thinking that the site is static so it will spider farther

ie www.site.com/101

instead of

www.site.com?id=101

Is this your system or a hosting company's system?

If its Apache, I'd assume its a setting in the httpd.conf file.

blobaugh
05-10-2004, 01:47 PM
Could be in your apache.conf file. what does the section for your site look like?