我想知道是否可以在同一个.htaccess中使用404错误和301重定向:
我发现人们重定向的重要网址是最重要的。对于404错误,这些是针对“遗留问题”
是否可以像这样使用,如果301没有规则,404错误适用或301重定向被跳过?
Redirect 301 /webdesign.html http://www.friesecomputerservice.nl
Redirect 301 /Home.html http://www.friesecomputerservice.nl
Redirect 301 /computerapk.html http://www.friesecomputerservice.nl/computer-apk.html
Redirect 301 /laptopreparatie.html http://www.friesecomputerservice.nl/laptop-reparatie.html
Redirect 301 /logoweb20.html http://www.friesecomputerservice.nl
Redirect 301 /partners.html http://www.friesecomputerservice.nl
Redirect 301 /tragecomputeroflaptop.html http://www.friesecomputerservice.nl/computer-apk.html
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} .
RewriteRule ^index.php http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^tag http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^component http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^Artikel http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^All-in-One http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^Intel http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^AMD http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^Norton http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^3.5-inch http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^Acer http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^Toshiba http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^Linksys http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^2.5-inch http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^DDR2 http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^Geluidskaarten http://www.friesecomputerservice.nl [R=301,L]
RewriteRule ^Kaspersky http://www.friesecomputerservice.nl [R=301,L]
ErrorDocument 404 /index.html
答案 0 :(得分:0)
是的,你可以这样做。