如何将我的Apaches .htaccess
文件中的以下内容从http://example1.com/folder/index.php
重定向到http://example2.com/index.php
?
You can use:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?siteone\.com$ [NC]
RewriteRule ^folder(/.*)?$ http://www.sitetwo.com$1 [L,R=301]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.