esto es mi index:
Código PHP:
switch($_GET["mod"])
{
case $_GET["mod"]: $mod = $_GET["mod"];break;
}
include "mod/$mod.php";
Código:
aqui funciona bien:RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/(.*)/(.*)/pg:(.*)$ index.php?mod=$1&$2=$3&pg=4 [L,QSA] RewriteRule ^(.*)/(.*)/(.*)\/$ index.php?mod=$1&$2=$3 [L,QSA] RewriteRule ^(.*)/pg:(.*)$ index.php?mod=$1&pg=$2 [L,QSA] RewriteRule ^(.*)/(.*)\/$ index.php?mod=$1&op=$2 [L,QSA] RewriteRule ^(.*)\/$ index.php?mod=$1 [L,QSA] RewriteRule ^index\.html$ index.php
Código:
pero este ya no funciona:RewriteRule ^(.*)/pg:(.*)$ index.php?mod=$1&pg=$2 [L,QSA]
Código:
me da estos errores:RewriteRule ^(.*)/(.*)/(.*)/pg:(.*)$ index.php?mod=$1&$2=$3&pg=4 [L,QSA]
Código:
Warning: include(mod/portfolio/type/portfolio/type.php) [function.include]: failed to open stream: No such file or directory in D:\web\htdocs\nextvision\index.php on line 13 Warning: include() [function.include]: Failed opening 'mod/portfolio/type/portfolio/type.php' for inclusion (include_path='.;C:\php5\pear') in D:\web\htdocs\nextvision\index.php on line 13
espero puedan orientarme, Gracias!