Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/05/2012, 22:59
Avatar de stramin
stramin
 
Fecha de Ingreso: marzo-2008
Ubicación: Cubil felino
Mensajes: 1.652
Antigüedad: 16 años, 9 meses
Puntos: 336
modificando .htaccess para sitio Joomla que contiene subdirectorios Joomla

No estoy seguro de estar posteando en el lugar correcto ni de haberme explicado bien con el título...

Tengo un sitio web en joomla (por ejemplo misitio.com) con su .htaccess por defecto que es así:

Código HTACCESS:
Ver original
  1. ##
  2. # @version $Id: htaccess.txt 21064 2011-04-03 22:12:19Z dextercowley $
  3. # @package Joomla
  4. # @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
  5. # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  6. # Joomla! is Free Software
  7. ##
  8.  
  9. #####################################################
  10. #  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
  11. #
  12. # The line just below this section: 'Options +FollowSymLinks' may cause problems
  13. # with some server configurations.  It is required for use of mod_rewrite, but may already
  14. # be set by your server administrator in a way that dissallows changing it in
  15. # your .htaccess file.  If using it causes your server to error out, comment it out (add # to
  16. # beginning of line), reload your site in your browser and test your sef url's.  If they work,
  17. # it has been set by your server administrator and you do not need it set here.
  18. #
  19. #####################################################
  20.  
  21. ##  Can be commented out if causes errors, see notes above.
  22. Options +FollowSymLinks
  23.  
  24. #
  25. #  mod_rewrite in use
  26.  
  27. RewriteEngine On
  28.  
  29. ########## Begin - Rewrite rules to block out some common exploits
  30. ## If you experience problems on your site block out the operations listed below
  31. ## This attempts to block the most common type of exploit `attempts` to Joomla!
  32. #
  33. ## Deny access to extension xml files (uncomment out to activate)
  34. #<Files ~ "\.xml$">
  35. #Order allow,deny
  36. #Deny from all
  37. #Satisfy all
  38. #</Files>
  39. ## End of deny access to extension xml files
  40. # Block out any script trying to set a mosConfig value through the URL
  41. RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
  42. # Block out any script trying to base64_encode data within the URL
  43. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
  44. # Block out any script that includes a <script> tag in URL
  45. RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
  46. # Block out any script trying to set a PHP GLOBALS variable via URL
  47. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  48. # Block out any script trying to modify a _REQUEST variable via URL
  49. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  50. # Return 403 Forbidden header and show the content of the root homepage
  51. RewriteRule .* index.php [F]
  52. #
  53. ########## End - Rewrite rules to block out some common exploits
  54.  
  55.  
  56. ########## Begin - Custom redirects
  57. #
  58. # If you need to redirect some pages, or set a canonical non-www to
  59. # www redirect (or vice versa), place that code here. Ensure those
  60. # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
  61. #
  62. ########## End - Custom redirects
  63.  
  64.  
  65. #  Uncomment following line if your webserver's URL
  66. #  is not directly related to physical file paths.
  67. #  Update Your Joomla! Directory (just / for root)
  68.  
  69. # RewriteBase /
  70.  
  71.  
  72. ########## Begin - Joomla! core SEF Section
  73. #
  74. ###RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  75. #
  76. # If the requested path and file is not /index.php and the request
  77. # has not already been internally rewritten to the index.php script
  78. RewriteCond %{REQUEST_URI} !^/index\.php
  79. # and the request is for root, or for an extensionless URL, or the
  80. # requested URL ends with one of the listed extensions
  81. RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC]
  82. # and the requested path and file doesn't directly match a physical file
  83. RewriteCond %{REQUEST_FILENAME} !-f
  84. # and the requested path and file doesn't directly match a physical folder
  85. RewriteCond %{REQUEST_FILENAME} !-d
  86. # internally rewrite the request to the index.php script
  87. RewriteRule .* index.php [L]
  88. #
  89. ########## End - Joomla! core SEF Section

Ahora el cliente me ha pedido 2 sitios joomla en 2 subdirectorios (misitio.com/admin y misitio.com/form).

El problema es que no puedo ingresar a ninguna de estas 2 subcarpetas por las reglas de reescritura del .htaccess de joomla, tema en el que soy novato aún.

Les ruego que me ayuden, es urgente y no se por donde empezar
__________________
El objetivo de este foro es orientar al usuario como un favor y no como una obligación.

Yo soy de los que dan puntos por aporte :D