Codeigniter路由器Google查找页面不存在


Codeigniter routers Google finding pages do not exist

Google正在创建坏链接,报告是这样说的:2011年7月19日

http://www.therapistjobsonline.com/openings/2011/06/21/speech-language-pathologist-jobs-in-paris/texas-speech-therapy-jobs/physical-occupational-speech/blog/index.php

404 (Not found)

我不确定是htaces文件还是codeigniter控制器搞砸了

在codeigniter路由文件中,我们使用:

$route['default_controller'] = "content_pages";
$route['scaffolding_trigger'] = "";
//include_once BASEPATH . "cache/routes.php";
//$routes['listings/permanent-therapy-jobs'] = "jobs/job_listings/3//";
$route['physical-occupational-speech/therapist-licensure-information.html'] = "content_pages/therapist_licensure_information";
$route['physical-occupational-speech/mission.html'] = "content_pages/mission";
$route['physical-occupational-speech/therapy-state-associations.html'] = "content_pages/therapy_state_associations";
$route['physical-occupational-speech/candidate-registration.html'] = "registration/candidate_registration";
$route['physical-occupational-speech/facility-registration.html'] = "registration/facility_registration";
$route['physical-occupational-speech/therapist-referral-program.html'] = "content_pages/therapist_referral_program";
$route['physical-occupational-speech/occupational-therapist-job-description.html'] = "content_pages/occupational_therapist_job_description";
$route['therapy-schools.html'] = "content_pages/schools";
$route['physical-occupational-speech/frequently-asked-questions-faq.html'] = "content_pages/frequently_asked_questions";
$route['physical-occupational-speech/([a-z-]+).html'] = "content_pages/$1";
$route['apply-job/([0-9]+).html'] = "jobs/apply/$1";
$route['openings/([0-9]+)/([0-9]+)/([0-9]+)/([a-z-]+)-jobs-in-([a-z-]+)/([a-z-]+)-therapy-jobs/([0-9]+).html'] = "jobs/job_details/$6";
//$route['listings/therapy-jobs'] = "jobs/job_listings///"; //All Jobs
$route['listings/therapy-jobs'] = "jobs/job_listings////0"; //All Jobs
$route['listings/therapy-jobs/([0-9]+)'] = "jobs/job_listings////$1"; //All Jobs
$route['([a-z]+)-therapy-schools-in-([a-zA-z-]+)'] = "content_pages/schools_state/$1/$2";

看看你的路由中的这个特殊规则

$route['openings/([0-9]+)/([0-9]+)/([0-9]+)/([a-z-]+)-jobs-in-([a-z-]+)/([a-z-]+)-therapy-jobs/([0-9]+).html'] = "jobs/job_details/$6";

您的链接http://www.therapistjobsonline.com/openings/2011/06/21/speech-language-pathologist-jobs-in-paris/texas-speech-therapy-jobs/physical-occupational-speech/blog/index.php显然无效。链接需要以id.html结尾

这可能是你有一些页面,你产生这些链接,而该页面正在产生非法链接。谷歌只是索引你网站上的公共页面。尝试使用日志找出这些非法链接的来源。

不好意思,什么问题?

您正在尝试访问'opening '控制器,该控制器似乎不存在:http://www.therapistjobsonline.com/openings/。为开口设置一个控制器,设置一个路由来处理开口,或者在你的.htaccess.

中设置它。