Php 为什么是Apache';s.htaccess 301重定向不';如果URL中有/opt关键字,则不起作用?
正在尝试重定向URL: 不起作用:Php 为什么是Apache';s.htaccess 301重定向不';如果URL中有/opt关键字,则不起作用?,php,apache,.htaccess,codeigniter,redirect,Php,Apache,.htaccess,Codeigniter,Redirect,正在尝试重定向URL: 不起作用: Redirect 301 /newsDetail/opto-circuits-selected-to-supply-medical-devices-to-chicago-transit-systems http://www.google.com/ Redirect 301 /newsDetail/opso-circuits-selected-to-supply-medical-devices-to-chicago-transit-systems http:/
Redirect 301 /newsDetail/opto-circuits-selected-to-supply-medical-devices-to-chicago-transit-systems http://www.google.com/
Redirect 301 /newsDetail/opso-circuits-selected-to-supply-medical-devices-to-chicago-transit-systems http://www.google.com/
如果将opto更改为opso:
Redirect 301 /newsDetail/opto-circuits-selected-to-supply-medical-devices-to-chicago-transit-systems http://www.google.com/
Redirect 301 /newsDetail/opso-circuits-selected-to-supply-medical-devices-to-chicago-transit-systems http://www.google.com/
要点
我正在成功地重定向.htaccess文件中的50个其他URL,除此之外,每个人都像charm一样工作。如果您的站点配置中没有任何具体的原因,那么您的web主机很可能已经设置了服务器范围的配置(例如web应用程序防火墙规则)它们正在阻止此URL。联系他们获取详细信息。你所说的“它不工作”是什么意思?@sєєsєєєєєє该页面没有301重定向到谷歌,我想。换句话说,
新闻细节/光电路…
是否可以正确访问而没有任何错误?似乎您已经执行了codeIgniter路由更改。