PHP handler for Apache mod_spel 1.0 PHP script

SPONSORED LINKS

    Specification

  • Version: 1.0
  • File size: 0 KB
  • File name: download.php?type=snippet&id=319
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: PHP
  • Price:GPL
  • Company: rvasquez (View more)

PHP handler for Apache mod_spel 1.0 script description:




Publisher review:
PHP handler for Apache mod_spel will interact with Apache's mod_spel module and return results that lets you customize the output. The Apache web server module mod_spel is a life saver in ensuring your site is accessible. The module catches single letter typos, and if there's only one possible match to the typo, it automatically directs you to the correct page.

However, if you have more than one possibility, then mod_speling generates a plain page with a list of possible URLs. It's functional, but if you like to maintain a specific look/feel on all your pages, even the error and warning pages, you might want to look at this code for a way to do it in PHP.

The first thing you have to do is modify your Apache configuration file so that an HTTP warning level of 300 is handled by this script. An example of this would be:

ErrorDocument 300 /errpages/300.php

In the file named 300.php, you would add the code that's after this, and use the function mod_speling_urls() to retrieve an array of URLs, plus the reason that document met the mod_speling criteria.

The code that follows just presents an ordered list with the URLs and the reason they matched. You can use this as a stepping stone to creating your own mod_speling output.
PHP handler for Apache mod_spel 1.0 is a PHP script for Snippets scripts design by rvasquez. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5