- Home
- Categorie
- La Community Connect.gt
- News Ufficiali da Connect.gt
- Problema con flag Last [Last] [L]
-
Problema con flag Last [Last] [L]
Ciao a tutti.
Nel mio file .htaccess ho queste 2 righe:
RewriteRule ^news-topic-([0-9]*).html file.php?name=News&new_topic=$1 RewriteRule ^.*$ not.php
Il problema è che dopo aver riscritto la url corrispondente al pattern della prima regola, la riscrittura NON SI FERMA nonostante il flag , quindi procede alla seconda regola e apre la pagina "not.php".
Perchè???
Aiutatemi...vi prego...
-
up
-
up
-
up
-
- 'last|L' (last rule)
Stop the rewriting process here and don't apply any more rewriting rules. This corresponds to the Perl last command or the break command from the C language. Use this flag to prevent the currently rewritten URL from being rewritten further by following rules. For example, use it to rewrite the root-path URL ('/') to a real one, e.g., '/e/www/'.
forse perchè non hai chiuso la regola (dopo html) con $ :bho:
- 'last|L' (last rule)
-
@osvi said:
forse perchè non hai chiuso la regola (dopo html) con $ :bho:
no.. il problema nn sta li... fa il suo lavoro: le regole successive nn vengono considerate...
ma...
c'e' un ma... nn so per quale arcana motivazione terminato il modulo rewrite apache modifica l'url secondo le regole ke avete dato... e... riesegue il modulo con il nuovo url... e lo fa ogni volta viene applicata una rewrite... quindi tutte le rikieste finirano nella regola .*..
anke io ho lo stesso identico problema... sto cercando una condizione da anteporre al rewrite ma per adesso nisba... te hai risolto?