|
| Home | |||||||
ASP & ASPx Custom 404 Script Installation Quick Guide Transcript
Welcome to the custom 404 script installation quick guide. The implementation of the custom 404 solution requires a higher level of technical expertise but has benefits that the dynamically driven links directory does not. The primary advantage to the custom 404 solution is the URL which is used. The custom 404 solution does not use any parameters associated with dynamically created web pages and is considered by the search engines to be standard HTML pages. The standard HTML output will make your visitors and the search engines believe that the page is a static HTML page when in reality it is dynamically created. This guide will demonstrate how to quickly install and configure your custom 404 links directory. Click next to begin the tutorial.
The first task at hand to configure your custom 404 links solution is to create a folder at the root of your website. You can name this folder whatever you like, but in this example we are going to stay with the default and name it “directory”. Once you have created your new folder you will need to create an ASP or ASPx file where you will place your script code. For purposes of this example we are going to name our file “resources.asp” and place the file into our new folder (“directory”). You can name the file anything you want to and it will have no effect on your links directory, but you will need to know the name of the file so that you can point any 404 Errors to the file.
Now that we have created our “directory” folder and “resources.asp” file, we need to configure the custom 404 error handler to point to the specific directory and file we created in the previous step. Open Computer Management and scroll down to your website under Internet Information Services. Right-click on the “directory” folder that we created and select Properties. Click on the “Custom Errors” tab and scroll down to the 404 error as you can see highlighted here and then select the Edit button. The “Edit Custom Error Properties” window is displayed; this is where we point to our “resources.asp” file to handle our 404 Errors. For Message Type select “URL” from the drop-down box, and for the URL lets’ put in our path to the “resources. asp” file /directory/resources. asp. Click OK, then Apply to save our changes, and close out of Computer Management.
Since our custom 404 error handlers are now configured, we can now logon to MyLinkHelper.com and generate our Custom 404 script. Select ASP – Custom 404 or ASPx – Custom 404 (depending on which solution you are using) from the drop-down menu and click “Get Code”.
Lets’ head back to our “resources.asp” file within the “directory” folder located at the root of your website. Open the “resources.asp” file and paste the Custom 404 script code. Save and close the file.
Now that the 404 error handler has been configured, and your script has been copied into your “resources.asp” file, we can now test the functionality of our links directory. Open a new browser and navigate to your new links directory using the default entry page definition of “main.html”. The entry page to your links directory will always be “main.html” and cannot be changed. As an example using the settings we used for this guide your URL would be similar to http://www.yourwebsite.com/directory/main.html. As you can see in this slide, the links page is displayed properly, and we have successfully configured our Custom 404 link solution. If however, you do not see the directory display and the page is blank, view the source of the page for more information. If you try to access your directory and are immediately redirected to your home page then you will need to modify the “DirFolder” variable within your link script file to reflect the name of the folder you created.
Thank you for watching our custom 404 script installation quick guide. From all of us at the My Link Helper development team, we hope you found this guide useful. If you have further questions, please feel free to contact us at www.mylinkhelper.com/contact.asp. | |||||||
| |||||||