Posted By: tidus on May 30, 2012, 12:30 pm | Post: 1 |
Quote From : motorlatitude May 30, 2012, 10:19 am Is there a way of having a custom 404 error page? I tried placing the .htaccess file in my web directory but nothing is happening, it's still display the same page? Hi, You can follow this official manual to achieve the same, http://httpd.apache.org/docs/2.0/mod/core.html#errordocument Quote Whilst I'm here I might as well ask, is there a way for the program to save your admin password, because every time I start the program and end it, it ask for the username and password, which is slightly annoying, I know apache requires admin rights but can the program not save into a keychain or something? Sorry. Due to security reasons we are not allowed to do it. Edited by tidus : May 30, 2012, 1:03 pm ----------------------- Follow AMPPS on, Twitter : https://twitter.com/AMPPS_Stack Facebook : http://www.facebook.com/softaculousampps Google+ : https://plus.google.com/+AmppsStack |
Posted By: motorlatitude on June 1, 2012, 11:49 am | Post: 3 |
Okay, finally solved what I was doing wrong, on mac you can't just save a text editor file as a .htaccess file for some od reason it aloud me to do this and so the file was not formatted correctly or something a long those lines, for anyone who would like to know how to do this in mac os x lion follow these steps:
1. create a new text edit file 2. press shift+cmd+T 3. Writer ErrorDocument 404 path/to/your/error/page.html 4. save as 1.htaccess in the directory where you wish to store it 5. open up terminal (Utilities/Terminal or search in spotlight) 6. type Code cd /path/to/1.htacces/file 7. then type Code mv 1.htaccess .htaccess and your done, for any future editing navigate to the directory via cd and then type Code vi .htaccess This is a editor built into terminal, I suggest you read this guide when using it as it's not easy: http://amath.colorado.edu/computing/unix/vi/ Hope this helps |