htaccess special characters - internal error

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
garcia
Posts: 1
Joined: Mon Aug 21, 2023 4:04 pm

htaccess special characters - internal error

Post by garcia »

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:

Code: Select all

RewriteRule ^me/([a-zA-Z0-9áàâäãåçéèêëíìîïñóòôöõúùûüýÿæÁÀÂÄÃÅÇÉÈÊÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒ._@\-]+)$ me.php?u=$1 [QSA,NC,L]
But it's works, if I remove some characters like this:

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
Post Reply