Page 1 of 1
Site can’t be reached because of search bar issue? Slash missing on URL
Posted: Thu Jan 30, 2020 1:33 am
by martinvarsano
Hello everybody!
First of all, thanks so much for all the help of this great community. You are a life-saver for many people (like me).
Easy question: Every time I do a search on the site, I have an error related to the path of the result. For example: I look for the term "soccer" and the site tries to reach an invalid URL, because the slash is missing. So I see in the URL bar "
https://www.partyprintables2go.comindex ... rch=soccer", instead of "
https://www.partyprintables2go.com/inde ... rch=soccer" that would be the correct link, since the slash is present between the site and the index.php.
Hope that makes sense
I am using Opencart 2.2.0.0.
I have another site running on Opencart 3, and this problem is not present there, so I assume is related to Opencart 2
Any clues?
Thanks a lot!
Re: Site can’t be reached because of search bar issue? Slash missing on URL
Posted: Thu Jan 30, 2020 2:38 am
by xxvirusxx
Check you front config
Re: Site can’t be reached because of search bar issue? Slash missing on URL
Posted: Thu Jan 30, 2020 9:54 am
by martinvarsano
Hi! Could you please elaborate a little bit more? What it is that I need to check on the config.php? Looks fine to me, but what do I know!
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://www.partyprintables2go.com/');
// HTTPS
define('HTTPS_SERVER', 'https://www.partyprintables2go.com/');
// DIR
define('DIR_APPLICATION', '/home/martinv/public_html/partyprintables2go/catalog/');
define('DIR_SYSTEM', '/home/martinv/public_html/partyprintables2go/system/');
define('DIR_IMAGE', '/home/martinv/public_html/partyprintables2go/image/');
define('DIR_LANGUAGE', '/home/martinv/public_html/partyprintables2go/catalog/language/');
define('DIR_TEMPLATE', '/home/martinv/public_html/partyprintables2go/catalog/view/theme/');
define('DIR_CONFIG', '/home/martinv/public_html/partyprintables2go/system/config/');
define('DIR_CACHE', '/home/martinv/public_html/partyprintables2go/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/martinv/public_html/partyprintables2go/system/storage/download/');
define('DIR_LOGS', '/home/martinv/public_html/partyprintables2go/system/storage/logs/');
define('DIR_MODIFICATION', '/home/martinv/public_html/partyprintables2go/system/storage/modification/');
define('DIR_UPLOAD', '/home/martinv/public_html/partyprintables2go/system/storage/upload/');
Thanks a lot!
Re: Site can’t be reached because of search bar issue? Slash missing on URL
Posted: Thu Jan 30, 2020 2:45 pm
by xxvirusxx
Change this
define('HTTP_SERVER', 'http://www.partyprintables2go.com/');
in this
define('HTTP_SERVER', 'https://www.partyprintables2go.com/');
Check same in admin config...and try to disable .htaccess to see if work.
Re: Site can’t be reached because of search bar issue? Slash missing on URL
Posted: Tue Feb 04, 2020 1:18 am
by martinvarsano
Hi! Thanks for the reply.
Did what you told me, adding the "s" on http and disabling the .htaccess (just renamed to .htaccess.old, hope that do the trick) but the search result still has no slash after the site name and the index.php:
https://www.partyprintables2go.comindex ... earch=army
Re: Site can’t be reached because of search bar issue? Slash missing on URL
Posted: Tue Feb 04, 2020 4:52 am
by johnp
Just a punt but check your .htaccess file ReweiteBase location is correct.
RewriteBase /partyprintables2go/
Not:
RewriteBase /partyprintables2go
Re: Site can’t be reached because of search bar issue? Slash missing on URL
Posted: Tue Feb 04, 2020 6:23 am
by uksitebuilder
If your store is accessed at your domain's root then RewriteBase should be:
RewriteBase /