chilindron
18/12/2014, 21:11
Como te dice diablo es la mejor opción, te puedes marear mucho haciendo eso
SetEnv PHP 5_3 # There might be no access to apache config, set options here DirectoryIndex index.php index.html Options -Indexes FollowSymLinks -MultiViews AddType video/ogg .ogm AddType video/ogg .ogv AddType audio/ogg .ogg AddType video/mp4 .mp4 AddType video/webm .webm # Options might not allowed here, use Rewrite rules insteadRewriteEngine On RewriteCond %{REQUEST_URI} /+get_img$ RewriteRule . get_img.php [L] RewriteCond %{REQUEST_URI} /+attachment/+ RewriteRule . attachment.php [L] RewriteCond %{REQUEST_URI} /+images/+cache RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . index.php [L] RewriteCond %{REQUEST_URI} !\.php$ RewriteCond %{REQUEST_URI} !\.html$ RewriteCond %{REQUEST_URI} !\.css$ RewriteCond %{REQUEST_URI} !\.js$ RewriteCond %{REQUEST_URI} !\.ico$ RewriteCond %{REQUEST_URI} !/+admin RewriteCond %{REQUEST_URI} !/+install RewriteCond %{REQUEST_URI} !(/+plugins/[^/]*)?/+js RewriteCond %{REQUEST_URI} !(/+plugins/[^/]*)?/+css RewriteCond %{REQUEST_URI} !(/+plugins/[^/]*)?/+images RewriteCond %{REQUEST_URI} !/+themes RewriteCond %{REQUEST_URI} !/+videos RewriteCond %{REQUEST_URI} !/+pdf RewriteCond %{REQUEST_URI} !/+images/+cache RewriteRule . index.php [L] RewriteCond %{REQUEST_URI} .tpl$ RewriteRule . index.php [L] RewriteCond %{REQUEST_URI} /+admin$|/+admin/+.*|/+admin-files RewriteRule . admin.php [L] # Uncomment it for gui backup/restore process # NOTE: It can be incompatible on some shared hosting #php_value output_buffering Off