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

时间:2011-07-21 19:45:44

标签: php .htaccess codeigniter

谷歌正在创建破损的链接,报告说: 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(未找到)

我不确定它的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";

2 个答案:

答案 0 :(得分: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";

您的链接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结尾。

您可能有一些页面生成这些链接,并且该页面正在生成非法链接。 Google只是将您网站上的公共网页编入索引。尝试使用日志来找出这些非法链接的来源。

答案 1 :(得分:0)

对不起,问题是什么?

您正在尝试访问“开放”控制器,该控制器似乎不存在:http://www.therapistjobsonline.com/openings/。设置开口控制器,设置处理开口的路径,或将其设置在.htaccess中。