PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

error page redirecting with linux webservers

Go down

error page redirecting with linux webservers Empty error page redirecting with linux webservers

Post by jamied_uk 26th March 2011, 01:04

add this line to your apache.conf file (under files section)


Code:
ErrorDocument 404 /notfound.php




save and restart apache server

now copy localized-error-pages to conf.d or sometimes called

/etc/apache2/conf-available/

these days on some newer linux os!


then restart

Code:
sudo /etc/init.d/apache2 restart




unzip file!


for info on how to do this look around google or this forum for restarting apache with linux
Attachments
error page redirecting with linux webservers Attachment
localized-error-pages.zip localized-error-pagesYou don't have permission to download attachments.(2 Kb) Downloaded 3 times


Last edited by jamied_uk on 7th May 2017, 21:59; edited 2 times in total
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

error page redirecting with linux webservers Empty Re: error page redirecting with linux webservers

Post by jamied_uk 8th January 2013, 11:35

to restart with sudo

sudo service apache2 reload
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum