Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Custom 404 not found page?



Threaded Mode | Print  

 Custom 404 not found page? (3 Replies, Read 1352 times)
motorlatitude
Group: Member
Post Group: Newbie
Posts: 9
Status:
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? :??:

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?

Thanks for any help  :D
IP: --   

Custom 404 not found page?
tidus
Group: AMPPS Team
Post Group: Super Member
Posts: 963
Status:
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/u/0/b/111580687033722614505/
IP: --   

Custom 404 not found page?
motorlatitude
Group: Member
Post Group: Newbie
Posts: 9
Status:
I can't figure out what I'm doing wrong? I've placed a .htaccess file in my web directory directing it to my error page, looks something like this:

Code
ErrorDocument 404 errors/404.html
But it's still giving me the default error page... Do i have to configure something?
IP: --   

Custom 404 not found page?
motorlatitude
Group: Member
Post Group: Newbie
Posts: 9
Status:
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  :D
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 21, 2014, 2:15 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.177