[英]URL redirect using .htaccess
I have changed my normal™ php website to CodeIgniter framework. 我已经将我的normal™php网站更改为CodeIgniter框架。 My issue is
我的问题是
I need to: 我需要:
redirect http://samajam.org/contact_us.php to http://samajam.org/contact
将http://samajam.org/contact_us.php重定向到http://samajam.org/contact
You can set 301 redirection in your .htaccess file like - 您可以在.htaccess文件中设置301重定向,例如-
Redirect 301 http://samajam.org/contact_us.php http://samajam.org/contact
OR you can use CodeIgniter URL Helper for redirection 或者,您可以使用CodeIgniter URL Helper进行重定向
Try 尝试
Redirect 301 /contact_us.php http://samajam.org/contact
Enjoy, i hope i helped you :) 享受,希望我对您有所帮助:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.