- Code: Select all
gallery-giacalone.php
- Code: Select all
RewriteRule italiano/foto-appartamento-palermo-centro.html gallery-giacalone.php [env=lang:italiano,NE,L]
RewriteRule english/photos-apartment-palermo.html gallery-giacalone.php [env=lang:english,NE,L]
If someone directly asks for gallery-giacalone.php the access should be forbidden, so I wrote
- Code: Select all
RewriteRule gallery-giacalone.php errors/page-not-found.php [L]
but if I ask one of the "valid" urls it still takes me to the not found page!
I know it's because "italiano/foto-appartamento-palermo-centro.html" gets rewritten and the rewrites starts all over with gallery-giacalone.php but isn't the L supposed to stop the rewrite process? What can I do?