mike Posted February 1, 2009 Posted February 1, 2009 I have links on the bottom of other websites that link back to mine. I just found that they are only producing a 404 page. Is there something I need to do to .htaccess in order for these links to work? thanks in advance. Quote
TCH-Bruce Posted February 1, 2009 Posted February 1, 2009 Sounds to me that the link is wrong. Have an example? Quote
mike Posted February 1, 2009 Author Posted February 1, 2009 Bruce, this is the link <center> <a href="http://www.michaelstreeter.com/webprice.html"><img alt="mikelogo" title="The Best prices at Mike's Web Design & Hosting" src="images/mikelogo.jpg" height="149" width="200" /></a></center> Quote
nortk Posted February 1, 2009 Posted February 1, 2009 Mike, I just tried your Kearney Vac site, and tried out the link and got an error. However, the error seems to be a 403 Forbidden error (that's what shows in the tab on Firefox). The 404 is from trying to access an error document. Do you maybe have your htaccess on your michaelstreeter.com site set up to only allow (or deny) access from certain IP addresses? I found this link that talks about how to allow/deny requests. Quote
mike Posted February 1, 2009 Author Posted February 1, 2009 Well, I THOUGHT my htaccess was ok but I'm thinking I am doing something wrong. this is my file RewriteEngine on # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> #The next line modified by DenyIP order allow,deny #The next line modified by DenyIP #deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName www.michaelstreeter.com AuthUserFile /home/******/public_html/_vti_pvt/service.pwd AuthGroupFile /home/******/public_html/_vti_pvt/service.grp Options All -Indexes # the following was added by Mike #End of Mike's add-on <Files 403.shtml> order allow,deny allow from all </Files> deny from 202.28.46.4 deny from 82.204.219.251 deny from 122.224.146.23 deny from 82.98.86.162 RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://awesomeimages.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://awesomeimages.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://birdfeeders.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://birdfeeders.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://donswelding.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://donswelding.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://grandkids.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://grandkids.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://incense.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://incense.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://millsitelake.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://millsitelake.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://nascar.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://nascar.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://skeezik.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://skeezik.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.awesomeimages.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.awesomeimages.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.birdfeeders.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.birdfeeders.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.donswelding.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.donswelding.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.grandkids.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.grandkids.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.hazzystavern.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.hazzystavern.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.incense.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.incense.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.millsitelake.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.millsitelake.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.nascar.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.nascar.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.skeezik.michaelstreeter.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.skeezik.michaelstreeter.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.codydouglas.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.codydouglas.com$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp|html|htm|css)$ - [F,NC] Quote
mike Posted February 1, 2009 Author Posted February 1, 2009 Ok. I edited the .htaccess file and deleted everything in it. ( saved to notepad of course ) saved the htaccess file now I get access I was after for all browsers. However, is that good...... to have an EMPTY htaccess file? Quote
TCH-Bruce Posted February 2, 2009 Posted February 2, 2009 If you are using FrontPage I think these lines need (or should) be in the .htaccess file. >RewriteEngine on # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> #The next line modified by DenyIP order allow,deny #The next line modified by DenyIP #deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName www.michaelstreeter.com AuthUserFile /home/******/public_html/_vti_pvt/service.pwd AuthGroupFile /home/******/public_html/_vti_pvt/service.grp Options All -Indexes Make sure to replace the ****** with the actual path on the server. Quote
mike Posted February 2, 2009 Author Posted February 2, 2009 I don't use frontpage. I use html kit and css then upload everything Quote
TCH-Carl Posted February 2, 2009 Posted February 2, 2009 I don't use frontpage. Bless you ! Front Page PS.. my views need not be that of TCH Quote
mike Posted February 2, 2009 Author Posted February 2, 2009 Thanks Carl. What are your thoughts on the empty htaccess? Quote
TCH-Bruce Posted February 2, 2009 Posted February 2, 2009 If you aren't blocking or redirecting anything the .htaccess file can be blank it's not an issue. Some people don't even have an .htaccess file. Quote
mike Posted February 2, 2009 Author Posted February 2, 2009 That's kind of what I thought. I think I will leave it as is for now and see how it goes. Thanks for everything. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.