Redirect apache重定向将代理传递添加到url

Redirect apache重定向将代理传递添加到url,redirect,apache2,Redirect,Apache2,我们正在为媒体使用apache代理通行证。 现在,我们要将所有URL从none www重定向到www域。 为此,我将其放在apache.conf文件中: <Location "/"> RewriteEngine On RewriteCond %{REQUEST_METHOD} =GET RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ https://www.%{HT

我们正在为媒体使用apache代理通行证。
现在,我们要将所有URL从none www重定向到www域。
为此,我将其放在apache.conf文件中:

<Location "/">
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD}  =GET
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</Location>

重新启动发动机
RewriteCond%{REQUEST_METHOD}=GET
重写cond%{HTTP_HOST}^www\。[北卡罗来纳州]
重写规则^(.*)$https://www.%{HTTP_HOST}%{REQUEST_URI}[R=301,L]
现在我在访问domain.com时遇到问题,它会重定向到
www.domain.com/proxy:ajp://127.0.0.1:8010/de/

通过谷歌我发现我应该添加
ProxyPass/
,但它不起作用