htaccess special characters - internal error
Posted: Mon Aug 21, 2023 5:09 pm
Hello my site locally with mamp PHP Version 7.4.1, does not work because of parameters in my htaccess with special characters. But if I put the same code, and even htaccess on an online server, it works fine.
On Mamp, this indicates an error in the Logs:
.htaccess: RewriteRule: bad flag delimiters
The problematic line is this:
But it's works, if I remove some characters like this:
Should we modify something in Apache or Php to avoid this error?
THANKS
On Mamp, this indicates an error in the Logs:
.htaccess: RewriteRule: bad flag delimiters
The problematic line is this:
Code: Select all
RewriteRule ^me/([a-zA-Z0-9áàâäãåçéèêëíìîïñóòôöõúùûüýÿæÁÀÂÄÃÅÇÉÈÊÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒ._@\-]+)$ me.php?u=$1 [QSA,NC,L]
Code: Select all
RewriteRule ^me/([a-zA-Z0-9á._@\-]+)$ me.php?u=$1 [QSA,NC,L]
Should we modify something in Apache or Php to avoid this error?
THANKS