|
|
 |  |
Hosting & Web Design Support Forum
Problems with your site? Need to know how something can be done? This is the place to ask and discuss web design issues or to request new hosting features.
|
|
|
|
| Discussion: .htaccess |
cbaslock Newbie
Posts: 2
|
unable to install a .htaccess file to my root directory? FTP_PRO uploads it but it doesn't show up after a refresh.
ip: 208.189.101.92
|
MOM admin
Posts: 4
|
Hi! :) It still should work I believe. As an example: How can I have a custom error page? To a .htaccess file in the indicated directory, add a directive of the form: ErrorDocument 404 /myerror.html For example, if you want 'File not found' (404) errors on access to http://www.dogs.com to resolve to a page named error.html in your DocumentRoot, you would place a .htaccess file in /www/htdocs/dogs which contains the directive: ErrorDocument 404 /error.html And you would place the file error.html in /www/htdocs/dogs. Is that where you have placed your file?
ip: private
|
cbaslock Newbie
Posts: 3
|
Were you using /htdocs/ as an example? I don't have that directory. HTML files are placed directly under /wwwThat is also where I attempted to place the .htaccess file that doesn't appear. I am receiving the standard "The page cannot be found"
ip: 208.189.101.92
|
MOM admin
Posts: 6
|
Hi again! In FTP_PRO hit the green arrow on top of the menue - this will bring you into the "heart" of the server machine - than look for "www" and than "htdocs" and than just pick your user id (all the other ids you can't access really anyhow...). And to be honest - I am not very experienced with the issue ".htaccess", I only used it in my "free web page communities" and there it worked perfectly for me... I noticed also though that the files seem to be "hidden" but they still do the "job" so fare I can tell. If this not help I will write Support at Colossus about this issue - they can explain things better in English than I (being Swiss and English not being my native language...).
ip: private
|
cbaslock Newbie
Posts: 4
|
Went several levels up and down. There is no "htdocs" directory listed, however after changing from cgi-bin to cgi-local and running Perldiver.cgi - the directory that I have my HTML files in is identified as "htdocs" which is immediately beneath /www So according to your directions, the files are in the correct location. However the 404 is not working. I will recheck my code to ensure it is correct but in the meantime I respectfully request that you contact your support and see if we are doing(or not) what we are supposed to be doing. I would also ask why the .htaccess files are hidden if in fact they are and if they can be made visible like most ISPs have them.
ip: 208.189.101.92
|
MOM admin
Posts: 7
|
Hi again! I will forward your question.
ip: private
|
cbaslock Newbie
Posts: 5
|
OK update I had a blank .htaccess file on the site. Wow! you say that won't work. That is correct but my original file had two lines of code. One of those lines was the 404 code. I had run into this error previously but didn't think to upload just the 404 code. So uploaded a blank .access file to eliminate the original error. Uploaded just the 404 code and it now works. The second line of code was causing the failure. It shouldn't have as it is working on two different sites. I am going to do some more investigating before writing a problem on it. Sorry for causing this thread due to "operator error"
ip: 208.189.101.92
|
| End of posts | Admin / Moderator Options |
|
|
 |  |
|
|