.htaccess problems, custom 404

This is a discussion on ".htaccess problems, custom 404" within the Web Page Design section. This forum, and the thread ".htaccess problems, custom 404 are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 15th, 2006, 09:50
New Member
Join Date: Nov 2006
Location: uk
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
.htaccess problems, custom 404

Ok, here is the problem. My boss uploaded a .htaccess file to the site a w hile back to create a custom 404 page. As it turns out, it looks like the custom 404 is returning a 302, absolute disaster. The problem is I don't know where he uploaded the file to and neither does he and as it is .file I can't see it. Does anyone know how, A. I can fix this problem and B. I can find where the file is.
Reply With Quote

  #2 (permalink)  
Old Nov 15th, 2006, 13:22
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,946
Blog Entries: 1
Thanks: 0
Thanked 29 Times in 29 Posts
Re: .htaccess problems, custom 404

Any good FTP app will show it or you can telnet/ssh in to the server and find it that way too via Terminal.app or the windows equivelant. You may want to try FileZilla as its free and fairly decent, if you are on a Mac get Transmit or CyberDuck.

As for creating the .htaccess to enable said function.

I normally tunnel into my server and cd (Change Directory) to where I want the file then pico the .htaccess file. If the file does not exist you can write it out in pico. Then add this line:

ErrorDocument 404 /your_error_file_name.html

for me I just hit Control + X to write out the file. then yes at the prompt.
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Nov 15th, 2006 at 13:35.
Reply With Quote
  #3 (permalink)  
Old Nov 15th, 2006, 14:24
New Member
Join Date: Nov 2006
Location: uk
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: .htaccess problems, custom 404

Thank you for your reply but unfortunately it went wooosh straight over my head ;(
Reply With Quote
  #4 (permalink)  
Old Nov 15th, 2006, 15:11
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,946
Blog Entries: 1
Thanks: 0
Thanked 29 Times in 29 Posts
Re: .htaccess problems, custom 404

Well in Windows, OS X etc.. any file starting with a period is by default invisible. Another thing you can do is open note pad, select All Files and save the text file as htaccess.txt (Make sure it uploads as ASCII and not Binary) with the above mentioned line of code in it. Upload it to your web server and through your FTP client rename the file to .htaccess.

Maybe this link will help explain it to you better:

http://www.javascriptkit.com/howto/htaccess.shtml
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
Reply

Tags
custom 404, htaccess problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom CSS unitedcraig Webforumz Suggestions and Feedback 2 Feb 11th, 2008 17:51
.htaccess benbacardi PHP Forum 6 Nov 15th, 2005 16:23


All times are GMT. The time now is 04:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43