He subido el archivo .htacces y archivo adjunto para crear urls amigables tipo teclado-virtual.php en vez php?id=14
Las urls se ven amigables pero me aparecen una serie de lineas en las que dice
Deprecated: Function ereg_replace() is deprecated in /home/artic/public_html/seourls.php on line 23
Deprecated: Function ereg_replace() is deprecated in /home/artic/public_html/seourls.php on line 23
Os paso el código de .htaccess
Código Apache:
Ver originalRewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/$ article.php?id=$1&title=$2 [L]
RewriteRule ^profile/([^/]*)/([^/]*)/$ profile.php?a=$1&name=$2 [L]
RewriteRule ^category/([^/]*)/([^/]*)/$ category.php?id=$1&name=$2 [L]
RewriteRule ^page/([^/]*)/([^/]*)/$ page.php?p=$1&title=$2 [L]
RewriteRule ^start/([^/]*)/([^/]*)/$ index.php?page=$1&ipp=$2 [L]
RewriteRule ^category/([^/]*)/([^/]*)/start/([^/]*)/([^/]*)/$ category.php?id=$1&title=$2&page=$3&ipp=$4 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ %{REQUEST_URI}/ [R=301,L]
Y el código php del archivo seourls.php
Código PHP:
Ver original<?php
GENERATE SEO URLS */
function generate_seo_link
($input,$replace = '-',$remove_words = true,$words_array = array()) {
//make it lowercase, remove punctuation, remove multiple/leading/ending spaces
//remove words, if not helpful to seo
//i like my defaults list in remove_words(), so I wont pass that array
if($remove_words) { $return = remove_words($return,$replace,$words_array); }
//convert the spaces to whatever the user wants
//usually a dash or underscore..
//...then return the value.
}
/* takes an input, scrubs unnecessary words */
function remove_words
($input,$replace,$words_array = array(),$unique_words = true) {
//separate all words based on spaces
$input_array = explode(' ',$input);
//create the return array
//loops through words, remove bad words, keep good ones
foreach($input_array as $word)
{
//if it's a word we should add...
if(!in_array($word,$words_array) && ($unique_words ?
!in_array($word,$return) : true)) {
$return[] = $word;
}
}
//return good words separated by dashes
}
?>
¿Que creeis que ocurre para que aparezca las líneas de código?
Perdón por el desconocimiento