我有以下.htaccess我认为它应该将所有域重定向到laminova.com.ve
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule (.*) "http\:\/\/laminova\.com\.ve\/cms\/$1" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^koralite$ "http\:\/\/laminova\.com\.ve\/cms\/marcas\/koralite\/madera" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^zenolite$ "http\:\/\/laminova\.com\.ve\/cms\/blog\/productos\/218-zenolite-paneles-de-alto-brillo-y-apariencia-similar-a-la-del-vidrio" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^acquafloor$ "http\:\/\/laminova\.com\.ve\/cms\/blog\/productos\/178-innovacion-en-pisos-flotantes" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^duragloss$ "http\:\/\/laminova\.com\.ve\/cms\/blog\/productos\/217-duragloss-mucho-brillo-con-la-apariencia-de-la-mas-fina-laca" [R=301,L]
redirect 301 /formica http://laminova.com.ve/cms/marcas/formica/maderas
但www.laminova.com.ve/cms/blog/productos/255-formica-supera-la-prueba-de-lijado
正确地重定向到laminova.com.ve/cms/blog/productos/255-formica-supera-la-prueba-de-lijado
这个网址:
http://www.laminova.sismsdns.com/cms/blog/productos/255-formica-supera-la-prueba-de-lijado
http://laminova.sismsdns.com/cms/blog/productos/255-formica-supera-la-prueba-de-lijado
不要重定向到laminova.com.ve/cms/blog/productos/255-formica-supera-la-prueba-de-lijado
我现在正在拉我的头发,因为我尝试了很多基于网络的变体,如
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^laminova.sismsdns.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.laminova.sismsdns.com$
RewriteRule ^(.*)$ http://laminova.com.ve/$1 [R=301,L]
如果我破坏文件,域名必须使用相同的.htaccess
我在所有域名上都会出错。
httpd -v
Server version: Apache/2.2.31 (Unix)
Server built: Aug 4 2016 12:20:09