Error500

Share this post

Ayuda con el htaccess

www.error500.net

Ayuda con el htaccess

Antonio Ortiz
Oct 9, 2005
Share this post

Ayuda con el htaccess

www.error500.net

¿Hay por ahí algún experto en el htaccess de Apache que me pueda echar una mano?. Mi problema es que Drupal "se apropia" de todas las URL que vengan por debajo de manera que https://www.error500.net/stats la entiende como una página del sitio y no como otra aplicación en un subdirectorio.

Esto lo hace con el siguiente código en el htaccess:

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Mi idea es poner una condición de manera que al directorio stats no afecte dicha regla. Lo he intentado de dos maneras. Una añadiendo una RewriteCond para que se la saltase:

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !/stats/ RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

y la otra, creando otra regla antes del código que añade Drupal:

#RewriteCond %{REQUEST_URI} /stats/ #RewriteRule (.*) $1 [L]

Pero ninguna de ellas ha funcionado bien. Si alguien puede echarme un cable, le estaré muy agradecido.

Share this post

Ayuda con el htaccess

www.error500.net
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 Antonio Ortiz
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing