Je voudrais rediriger via un RewriteRule (mod_rewrite) activé httpd.conf mon URL:
rewriterule pas appliquée dans Apache 2.4 httpd.conf
https://mysite.domain.tld/index_php_file.php?ab=ident_keys & ac = 5GU7VBNAH45DA5
À:
https://mysite.domain.tld/index_php_file.php?ab=ident_key_1024 & ac = 5GU7VBNAH45DA5
Je l'ai essayé avec un certain nombre de règles sans chance:
RewriteCond %{HTTP_HOST} hmysite.domain.tld
RewriteRule ^/index_php_file\.php\?ab=ident_keys&ac=$ https://hmysite.domain.tld/index_php_file.php?ab=ident_key_1024&ac= [R=301,L,QSA]
ni
RewriteCond %{QUERY_STRING} ^ac=(.*)$
RewriteRule ^/?([a-z-0-9-_.]+)$ /$1/index_php_file.php?ab=ident_key_1024&ac=%1 [L,R=301]
semble réécrire l'URL.
Des suggestions sur ce que je manque?
Merci beaucoup.