我有一个奇怪的问题。直到昨天一切正常,突然发现这个问题。
网站在这里: http: //www.famtripsandinspectionvisits.com/all_trips
如果您访问上面的页面并单击“india-kerala”链接,它应该带您到以下页面。
http://www.famtripsandinspectionvisits.com/trips/old_trips/india_kerala
但是浏览器会重定向到这个页面: http://www.famtripsandinspectionvisits.com/all_trips/old_trips/india_kerala?/trips/old_trips/india_kerala 这表明添加了以下部分,这是额外的。all_trips/old_trips/india_kerala?
我检查了我的 .htaaccess 并将其重置为默认值,但它仍然不影响它。我检查了我的 cofnig.php 的基本 url,一切都和以前一样。如果有人可以提供帮助,我将不胜感激。
我的 .htaccess 文件
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
Redirect 301 /invest.php http://www.famtripsandinspectionvisits.com/investment_opportunity
Redirect 301 /buyers.php http://www.famtripsandinspectionvisits.com/buyers
Redirect 301 /trips.php http://www.famtripsandinspectionvisits.com/all_trips
Redirect 301 /sellers.php http://www.famtripsandinspectionvisits.com/sellers
Redirect 301 /contact.php http://www.famtripsandinspectionvisits.com/contact_us
Redirect 301 /about.php http://www.famtripsandinspectionvisits.com/about_us
Redirect 301 /login.php http://www.famtripsandinspectionvisits.com/login
Redirect 301 /trip-kerala.php http://www.famtripsandinspectionvisits.com/trips/old_trips/india_kerala
Redirect 301 /trip-burundi.php http://www.famtripsandinspectionvisits.com/trips/up_coming_trips/burundi_africa
Redirect 301 /register.php http://www.famtripsandinspectionvisits.com/register
Redirect 301 /trips http://www.famtripsandinspectionvisits.com/all_trips
我的路线.php
$route['default_controller'] = "site";
$route['404_override'] = '';
$route['fam_admin'] = "fam_admin/login";
/* End of file routes.php */
/* Location: ./application/config/routes.php */
亲切的问候