目前我的 mod_rewrite 配置如下:
<VirtualHost *:80>
ServerName address.website.org
ServerAdmin [email protected]
DocumentRoot /var/www
Redirect permanent / http://www.website.org/site
ErrorLog /var/log/apache2/connect.website.org-error.log
CustomLog /var/log/apache2/connect.website.org-access.log combined
我需要包含以下内容的重定向:
http://address.website.org/site/site>http://www.website.org/site/site
我已经编辑了网址以保护隐私。如您所见,我基本上只需要以某种方式添加面包屑,同时保留原始重定向。
谢谢!
答案1
回答:
<VirtualHost *:80>
ServerName address.website.org
ServerAdmin [email protected]
DocumentRoot /var/www
Redirect permanent /site http://www.website.org/site/site
Redirect permanent / http://www.website.org/site
ErrorLog /var/log/apache2/connect.website.org-error.log
CustomLog /var/log/apache2/connect.website.org-access.log combined