[TUTORIAL] Setting up mx_errordocs for IIS, etc.
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_errordocs
View previous topic :: View next topic  
Author Message
MennoniteHobbit



Joined: 11 May 2004
Posts: 196
Location: Indiana, USA

PostPosted: Sat Feb 12, 2005 11:20 pm    Post subject: [TUTORIAL] Setting up mx_errordocs for IIS, etc. Reply with quote

This is if you have IIS/another non-Apache webserver but want to utilize mx_errordocs. Note that this will only work if you can customize the actual HTML pages that your site redirects to upon an error. Also, if your site control panel can manage the HTML error files, use that to find the file and edit it.

Open up the 404.html file, or whatever the file's name is. (This is the HTML file that is displayed upon getting a 404 error.) Open it up, and replace its contents with this:

Code:
<html>
<head>
<title>Redirecting...</title>
<script language="JavaScript">
self.location.href='http://www.yoursite.com/mxroot/index.php?page=8&errno=404&errlog=yes';
</script>
</head>
<body>
</body>
</html>


Replace:

Code:
http://www.yoursite.com/mxroot/


with the real value. So, if your MX Portal was located at http://www.yoursite.com/portal/, then replace the above code with that. If your portal was located in your site root, such as http://www.yoursite.com/, then replace the above code with that. Keep the index.php?... with its value. If you want logging disabled instead of enabled, simply replace this:

Code:
index.php?page=8&errno=404&errlog=yes


with this:

Code:
index.php?page=8&errno=404&errlog=no


. You can follow the above methods for any of the other errors. Simply open up the correct HTML error file, and replace the &errno=404 with the correct HTTP error code number.

Post any suggestions/fixes if you wish! Thanks. Smile I hope this works for you.
 
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_errordocs All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum