File: |
class.cleanurl.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
class itself |
Class: |
Clean URL
Transform URLs to make them search engine friendly |
Author: |
By Huda M Elmatsani |
Last change: |
//improve in handling extension to resolve filename like aaa.bbb.php
/* if extension is found in URL, eliminate it */
if(strstr($uri,".")) {
$arr_uri = explode('.', $uri);
/* get last part */
$last = end($arr_uri);
if($last == $ext){
array_pop($arr_uri);
$uri = implode('.', $arr_uri);
}
} |
Date: |
19 years ago |
Size: |
3,881 bytes |
|
|
|