Custom 404 pages – How to write one for Community Server 2008
So I've been working on a couple of sites using CS and I decided to customize the 404 page as the default one doesn't help people who are visiting your site very much. I decided to use something simple and easy to implement so here are the details. Any other methods, suggestions or more appealing custom 404 pages are welcomed.
Steps:
- Create a site article for your 404 page (Dashboard » Administration » Site Administration » Manage Articles)
- Use a page name like 404page and a descriptive title that indicates it is a 404 page error. You can take a look at my own 404 page to see how it looks.
- Include the following code:
- <p>We apologize, but we are unable to find the page you are looking for. </p>
<p>Please try using our site search located on the right side to find the content you are looking for or see other suggestions below. </p>
<p>
<script type="text/javascript"><!–
var GOOG_FIXURL_LANG = 'en';
var GOOG_FIXURL_SITE = 'http://JCBauza.com/';
// –></script>
<script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js" type="text/javascript"></script>
</p>
- <p>We apologize, but we are unable to find the page you are looking for. </p>
- Don't forget to set your URL Site to your own one so that Google can better suggest results for you and search your site
Love
Can we use Let's Encrypt, the free and open certificate authority?
Hola! gracias por la info, me sirvió el comando sacandole el nombre del server. En mi caso, fue una migración…
Yes 3rd option helped me too. I removed the WC key Values from config file then started working.
I know this is from 2014. But really, thank you!