Buenas, paso a comentarles, tengo un pequeño sitio que fue creado para que trabaje un .htacces y la verdad que no he podido lograr que funcione correctamente el mod_rewrite en windows server 2003 y no encuentro la vuelta entonces he decidido terminar con esto y editar el pequeño sitio para que no utilize mod rewrite y se vean las url totalmente horribles pero que se vean al fin.
Bueno en el .htacces es lo siguiente
Código .htacces:
Ver original<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9-/,._;]+) index.php?index=$1 [L]
</IfModule>
en el index.php encuentro estas lineas que me parece que hacen referencia a eso
Código PHP:
Ver original/** Links systems ************************************************/
if(isset($_GET['index'])) {
$wlinks = explode("/", $_GET['index']);
if(end($wlinks) == "") //Remove last element if he dont have any value
$smarty->assign("wlinks", $wlinks);
$modaddr = $web['address'].$wlinks[0]."/";
$fulladdr = $web['address'].$_GET['index']."/";
$smarty->assign("modaddr", $modaddr); //clean address with mod
$smarty->assign("fulladdr", $fulladdr); //full address
}
/** MODULE SYSTEM ************************************************/
{
if(check_module($wlinks[0]))
{
$mod = $wlinks[0];
}
else{
$mod = $web['firstmodule'];
}
}
else{
$mod = $web['firstmodule'];
}
Despues hay otro archivo que se llama functions.php y esta dentro de la carpeta misma del index.php
este es el codigo:
Código PHP:
Ver original<?php
/**
* Master functions
* @author Dreigas (Arunas Jaspelkis)
* http://xgamers.org
*/
if(IN_WEB != true)
/**
* Check if module exists
* @param $mod module name
*/
function check_module($mod)
{
{
return true;
}
return false;
}
//Generate seo link
function makeSeo($text, $limit=100)
{
// replace non letter or digits by -
// trim
$text = trim($text, '-');
// lowercase
// remove unwanted characters
}
{
//return 'n-a';
}
return $text;
}
/** ****************************************
* Install seo continent array
*/
function installSeoContinent($vars)
{
global $seocontarray;
foreach($parts as $var)
{
$seocontarray[$info[0]] = $info[1];
}
}
//Get value from seo link
function getSeoCont($var)
{
global $seocontarray;
if(isset($seocontarray[$var])) return $seocontarray[$var];
return null;
}
//Update with new information and get link
function setAndGetSeo($vars)
{
global $seocontarray;
foreach($vars as $key=>$var)
$seocontarray[$key] = $var;
return getSeoLink();
}
//Get real link
function getSeoLink()
{
global $seocontarray;
$cont = "";
foreach($seocontarray as $key=>$var)
$cont .=",$key-$var";
return $cont;
}
//Change and get only temp array, not real
function getTempSeoLink($array)
{
global $seocontarray;
$temp = $seocontarray;
foreach($array as $key=>$var)
$temp[$key] = $var;
$cont = "";
foreach($temp as $key=>$var)
$cont .=",$key-$var";
return $cont;
}
//Delete all info from seo array
function cleanSeoLink()
{
global $seocontarray;
}
?>
Atencion: El sitio no pesa nada 1mb nomas pesa, si desean ver todos los archivos
configurados y demas puedo pasar el zip que pesa 1mb, o bien les doy acceso remoto al vps.
Desde ya muchas gracias.