Doresc să redirecționez „http://localhost/b.html" --> „http://localhost/a.html" Am încercat RewriteRule pentru asta. Dar cumva nu merge la mine.
Eu folosesc apache2 și httpd.conf-ul meu conține:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteRule ^/b.html$ http://localhost/a.html
Când încerc „http://localhost/a.html" îmi arată pagina web. Dar când încerc „http://localhost/b.html" apache2/error_log spune „fișierul nu există : b.html" Lipsește vreo setare pentru a activa rewrite_module?