[英].htaccess redirect is resulting in a 404 how can i fix this
Basically i want my index.php to be College-recruiting-videos so i looked it up on stackoverflow and found this rewrite rule 基本上我希望我的index.php是大学招聘视频,所以我在stackoverflow上查找了它,发现了这个重写规则
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
RewriteEngine On
RewriteRule ^index.php College-recruiting-videos [R=301]
So i put that in my htaccess and saved it but now my index.php 404's why? 所以我把它放在我的htaccess中并保存了,但是现在我的index.php 404为什么呢?
http://primetimehighlights.com/college-recruiting-videos http://primetimehighlights.com/college-recruiting-videos
我想你想要这个。
RewriteRule ^College-recruiting-videos$ index.php [L]
Try This 尝试这个
Redirect 301 /oldpage.html http://www.example.com/newpage.html 重定向301 /oldpage.html http://www.example.com/newpage.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.