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.
|
|
|
|
|
![]() |
||
.htaccess problems, custom 404
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
.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.
|
|
|
|
||||
|
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.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Nov 15th, 2006 at 13:35. |
|
|||
|
Re: .htaccess problems, custom 404
Thank you for your reply but unfortunately it went wooosh straight over my head ;(
|
|
||||
|
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
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| custom 404, htaccess problem |
| Thread Tools | |
|
|
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 |