AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: unclebacon-live on July 05, 2021, 09:59:06 PM

Title: EDITED: Links add "com" to URL then 404
Post by: unclebacon-live on July 05, 2021, 09:59:06 PM
Hi,

I run a very small site for a buddy of mine and recently upgraded the cart to 1.3. Since then, when I attempt to login to the admin area, I get redirected from index.php to /com/index.php which then 404's out. I am at a complete loss as for why the URL gets "com" added to it.

I even tried a fresh install and it does the same thing, making me think it's a server/config issue but I didn't change anything before or after the upgrade. The site is also currently in maintenance mode so no telling what would happen if I were to login as a regular customer.

Thanks,

Bacon

Edit 1: So I just wanted to add, it isn't just the admin area, seems to be everywhere. If I go to the main website where it says the maintenance mode message, and click on the logo in the top left, it also adds the /com to the web address. Any suggestions at all?

Edit 2: Well it is working now, but with the /com in the URL...I'm miffed.   ??? ??? I've been on discord with my host for a while and can't find any rewrite rules or whatever. The AbanteCart files are in the base dir of my domain and no "com" folder even exists there.
Title: Re: EDITED: Links add "com" to URL then 404
Post by: abolabo on July 06, 2021, 03:11:26 AM
it's a core bug. Already fixed in the developer branch.

To solve just replace file  public_html/core/lib/config.php with this (https://raw.githubusercontent.com/abantecart/abantecart-src/1.3.1/public_html/core/lib/config.php)
and then clean cache
Title: Re: EDITED: Links add "com" to URL then 404
Post by: unclebacon-live on July 06, 2021, 11:20:12 AM
Boom! Immediate fix. Thank you, I had a peak through github but maybe this was already marked resolved and buried.  ;D