<div>HI All</div><div> </div><div>When i edit Web Server Aliases , the php config will loss.</div><div> </div><div>1. I create the test site, with one aliases, the php is work</div><div>2. Add one more web server aliases in UI, the php config will gone.</div>
<div>###<br>RewriteEngine on<br>RewriteCond %{HTTP_HOST}                !^59.xxx.x.10(:80)?$<br>RewriteCond %{HTTP_HOST}                !^<a href="http://www.testtest.com">www.testtest.com</a>(:80)?$ [NC]<br>RewriteCond %{HTTP_HOST}                !^<a href="http://testtest.com">testtest.com</a>(:80)?$ [NC]<br>
RewriteCond %{HTTP_HOST}                !^<a href="http://mail.testtest.com">mail.testtest.com</a>(:80)?$ [NC]</div><div>RewriteRule ^/(.*)                      <a href="http://www.testtest.com/$1">http://www.testtest.com/$1</a> [L,R=301]<br>
RewriteOptions inherit<br>AliasMatch ^/~([^/]+)(/(.*))?           /home/.sites/106/site51/users/$1/web/$3<br>Include /etc/httpd/conf/vhosts/site51.include<br># BEGIN PHP SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.<br></div>
<div>3. But i del add the web server aliases, the php config is back (but the rewrite still here?) </div><div>###<br>RewriteEngine on<br>RewriteCond %{HTTP_HOST}                !^59.xxx.x.10(:80)?$<br>RewriteCond %{HTTP_HOST}                !^<a href="http://www.testtest.com">www.testtest.com</a>(:80)?$ [NC]<br>
RewriteCond %{HTTP_HOST}                !^<a href="http://testtest.com">testtest.com</a>(:80)?$ [NC]<br>RewriteCond %{HTTP_HOST}                !^<a href="http://mail.testtest.com">mail.testtest.com</a>(:80)?$ [NC] </div>
<div>RewriteRule ^/(.*)                      <a href="http://www.testtest.com/$1">http://www.testtest.com/$1</a> [L,R=301]<br>RewriteOptions inherit<br>AliasMatch ^/~([^/]+)(/(.*))?           /home/.sites/106/site51/users/$1/web/$3<br>
Include /etc/httpd/conf/vhosts/site51.include<br># BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.<br>AddType application/x-httpd-php .php5<br>AddType application/x-httpd-php .php4<br>AddType application/x-httpd-php .php<br>
# END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.<br></div>