RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
Pemberitahuan ~ Hope Computer Training Centre
Enhance 404 pages
Enhance 404 pages
hopectc.blogspot.com
doelexpress.blogspot.com
When a user clicks on a link to a page that's no longer available on your site, your server returns a 404 (Page Not Found) error. Because generic messages can be frustrating to the user, we recommend creating a custom 404 page to provide more useful information about your site. Read our guidelines for creating a useful custom 404 page.
In addition, you can add the 404 widget to your custom 404 page. The 404 widget automatically provides users with helpful suggestions instead of error messages.
* It adds a search box for your site with appropriate search suggestions.
* It tries to provide alternatives to incorrect URLs.
This makes it easier for users to find the information they need (and makes it less likely that they'll leave your site to look elsewhere.)
Example
If a user types in the incorrect url http://www.example.com/news/recentt we'll display the following:
Example.com
Home About Us Products Services Contact us
Sorry, but the page you are trying to view does not exist.
404 widget
Closest match: http://www.example.com/news/recent/
Other things to try:
* Go to http://www.example.com/news/
* Go to the sitemap of the site: http://www.example.com/sitemap.html
* Search www.example.com:
Google Search
Note: the widget is still an experimental feature, so we currently don't provide closest match, alternative URL and sitemap suggestions for all sites.
Add this widget to your custom 404 page
Copy the code below and paste it into your page between the and tags.
Select language:
0 komentar:
Posting Komentar