0
我想通过重写规则(mod_rewrite的)重定向启用在httpd.conf我的网址:
重写规则在Apache中不适用2.4的httpd.conf
https://mysite.domain.tld/index_php_file.php?ab=ident_keys & AC = 5GU7VBNAH45DA5
TO:
https://mysite.domain.tld/index_php_file.php?ab=ident_key_1024 & AC = 5GU7VBNAH45DA5
我曾与一些规则试过没有运气:
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]
也不
RewriteCond %{QUERY_STRING} ^ac=(.*)$
RewriteRule ^/?([a-z-0-9-_.]+)$ /$1/index_php_file.php?ab=ident_key_1024&ac=%1 [L,R=301]
似乎重写URL。
关于我失踪的任何建议?
非常感谢。