PHP Classes
Icontem

Class: HN URL Rewrite


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend!
      Classes of Horst Nogajski  >  HN URL Rewrite  >  Download  >  Support forum Support forum  >  RSS 1.0 feed RSS 2.0 feed Latest changes  >  Stumble It! Stumble It!  >  Bookmark in del.icio.us Bookmark in del.icio.us  
  Supplied by   Group folder image Groups   Detailed description   Freshmeat project  
  Rate classes User ratings   Trackback   Applications   Files Files  
  • Supplied by:

    Picture of Horst Nogajski
    Name: Horst Nogajski <e-mail contact>
    Published packages: 6
    Country: Germany Germany - PHP jobs in Germany
    Home page: http://www.nogajski.de/
    Age: 45
    All time rank: 34
    Week rank: 60

    Browse this author's classes

  • Innovation Award:

    PHP Programming Innovation award nominee
    September 2004
    Number 2
    There is the conviction between experience Web site developers that search engines index more pages of a site and do it faster if their page URLs are normalized.

    There is not an absolute certainty about the accuracy of this conviction because the search engine companies do not confirm or deny it in public. Despite this, many site developers systematically normalize their pages URLs so their sites gain more visibility in the search engine result pages and they get more visits for free.

    Normalization consists in making the pages be served under an URL without any query parameters that usually follow the question mark in the original URLs. The normalized URLs make the query parameters appear as if they are directory path names of site page virtual files.

    http://www.somesite.com/browse.php?content=something

    becomes for instance:

    http://www.somesite.com/browse/content/something/

    The most popular Web servers come with modules that rewrite the page URLs, so the scripts that generate the pages do not need to be changed to normalize the URLs. However, not every site can make use of Web server modules to rewrite URLs.

    This class provides a PHP only solution for rewriting page URLs. Since it does not require a special Web server module, it makes possible for many more sites to also take advantage for URL rewriting benefits.

    Manuel Lemos
  • Groups:

    Group folder image HTML HTML generation and processing View top rated classes
    Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
  • Detailed description:

    This class can emulate a page request URL rewriting and redirection specified within the same PHP script.

    It can a PHP script handle a request with an URI like this:

    /home/name.php?p1=a&p2=b&xy=123

    when it is requested a page with an URI like this:

    /goto/home/name/xyz/NQw/NQi/RwSy=/index.html

    or, optionally with strong encoding, to with an URI like this:

    /goto/home/name/xyz/Sm9obZjhsz6s/amBzb29zdC5jb20=/MTIU2NzgY1g==/index.html

    The request redirection emulation is done by rewriting some request variables that contain request paths, like SCRIPT_FILENAME, SCRIPT_NAME, PHP_SELF, REQUEST_URI, PATH_TRANSLATED, and QUERY_STRING.

    It can parse and change the output of the current page script to rewrite the URLs links (also in image maps) or images in the page with absolute URLs, relative URIs and URLs that contain scheme and host (http://www.somehost.com). Relative parent directory URIs (../) are also supported.

    You can do the rewriting by using PHP buffering support.
    Then the class optionally can compress the processed page output to serve the page in less time if the user browser supports compression.

    Or you can rewrite a string with the string-rewrite method, if you cannot (or don't) want use the buffering support.

    For detailed description see readme file.
  • Freshmeat project:

    Project record: hn_urlrewrite
    Popularity score: 80.05 (0.13%)
    Popularity rank: 31,598 (PHP Classes: 232)
    Vitality score: 0.00 (0.00%)
    Rating: 8.18 (Votes: 1) Please rate this class in Freshmeat
  • User ratings:

    Ratings
    Utility
    Consistency
    Documentation
    Examples
    Tests
    Videos
    Overall
    Rank
    All time:
    Good (82.1%)
    Sufficient (71.4%)
    Sufficient (62.5%)
    Sufficient (73.2%)
    -
    -
    Sufficient (61.8%)
    499
    Month:
    Not yet rated by the users
  • Trackback links:

    Link Description
    Técnicas para mejorar nuestro posicionamiento web (SEO) (PARTE 1) A raíz de un par de artículos que leí un tiempo atrás, tanto en maestros del web, como en 1 en buscadores, y el seminario de webmasters al que acudimos el pasado noviembre (Madrid, URL) he ido cogiendo ideas y me he decidido a redactar este artículo...
    Latest blog trackback links Latest blog trackback links
  • Applications that use this class:

    No application links were specified for this class.
    Add link image If you know an application of this package, send a message to the author to add a link here.
  • Files:

    File Role Description
    Plain text file example0.php Example example
    Plain text file goto Appl. this script handles the redirection
    Plain text file hn_urlrewrite.class.php Class Classfile
    Files folder image hn_urlrewrite_example
      Plain text file example1.php Example example
      Plain text file example2.php Example example
    Files folder image hn_urlrewrite_example/sub1
      Plain text file example3.php Example example
    Accessible without login Plain text file hn_urlrewrite_readme.txt Doc. readme
    Plain text file htaccess_txt Data entry for htaccess file in servers root dir
    Download all files: hn_urlrewrite.tar.gz hn_urlrewrite.zip
    NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2008 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products