基础url两次与openart网站和管理


Base url twice with opencart site and admin

我已将openart上传文件夹上传到http://example.com/opencart文件夹。

现在当我打开它时,它正在打开,但在点击任何导航菜单(例如联系我们)后,显示404错误,地址栏中的url是

http://example.com/example.com/opencart/?route=information/contact

不是

http://example.com/opencart/?route=information/contact

但是当我悬停在链接上时,它在浏览器底部显示了完美的url。(例如,在上面的情况下,悬停-"http://example.com/opencart/?route=information/contact"显示…

如何修复?

编辑* * * *

my .htaccess in openart/folder:

RewriteBase / 
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]   
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] 
RewriteRule ^system/download/(.*) /index.php?route=error/not_found [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*'.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

不清楚你运行的是哪个版本的OpenCart,但在所有最近的版本中,在提供的。htaccess文件中,RewriteBase规则上面有一个注释:

# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /

所以改成

RewriteBase /opencart/