View Full Version : .htaccess question
bobby9101
03-24-2006, 11:16 PM
on my site www.ranktips.com say i go to www.ranktips.com/forum
now that page doesnt exist, but yet it takes me to my index.php which is what i want
my problem is that it appends the /forum to the end of the url even though it displays the directory?
i would like it to straight up send it to www.ranktips.com with out any sub folder
any ideas?
minute
03-25-2006, 01:06 AM
Not sure how right it is, but may trigger something.
The forum doesn't exist.
In .htaccess you probably have
ErrorDocument 404 /index.php
What this line does is serve your index page when you get a 404 error - page not found or wrong path or something.
What is happening mechanically I believe is that your 404 error is redirecting to your index page -
when you normally get a 404 error it will show the page URL in the browser
I believe this is normal behaviour and not sure what you can do -- but read below.
I think though that this thread is worth reading regarding the practise of linking 404 errors back to the index page - I'm thinking of creating a custom error page instead.
http://gsitecrawler.com/articles/error-404-200.asp
bobby9101
03-25-2006, 02:06 AM
you are correct, i have the errordocumnet 404
however i had this same problem before i dadded that :(
thanx for the link though, i am readin now
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.