我正在尝试将我的URL https://my.url.net/en.html重新映射到https://my.url.net/vocab/arch/en.html。
我已修改/ etc / apache2 / sites-enabled中的000-default.conf文件,如下所示:
RewriteEngine on
RewriteCond %{SERVER_NAME} =my.url.net [OR]
RewriteCond %{SERVER_NAME} =my.urlb.net.net
RewriteCond %{REQUEST_URI} !^.*/vocab/arch/.*$ [NC]
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
但是我仍然有https://my.url.net/en.html。
按照我以前的issue的建议,我已在:443虚拟主机上添加了
RewriteRule ^/$ /vocab/arch [R=302]
我有URL https://my.url.net/vocab/arch,但出现错误“您要查找的页面不存在。”
建议?