AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Sam_78 on August 22, 2019, 05:47:20 PM

Title: .htaccess redirect issue with directory listing
Post by: Sam_78 on August 22, 2019, 05:47:20 PM
Hi I have started a new project but I am having issue with .htaccess or directory listing.
when I installed AbanteCart for the first time it was showing me directory list. I contacted host and they suggested me to add .htaccess files so I installed Abantecart by going to https://kylescrafts.com/index.php and everything works fine. but when I click on logo or go to home page which is https://kylescrafts.com it says page not found. My .htaccess is same as here https://github.com/abantecart/abantecart-src/blob/master/public_html/.htaccess.txt no changes. I have enabled SEO url as mentioned here


Right now my site works if I add /index.php but I don't want that I want it to work at kylescrafts.com

I am not able to understand why it says page not found on home page. My link in store details is https://kylescrafts.com/ for both
Title: Re: .htaccess redirect issue with directory listing
Post by: Basara on August 23, 2019, 01:17:48 AM
Hello.
First of all you have to review your .htaccess file. Take a note that this is something related to your server (hosting) and how it was configured.
Here is default set of htaccess rules we provide https://github.com/abantecart/abantecart-src/blob/master/public_html/.htaccess.txt it should work on most of servers but you hosting may not allow some of them.
Anyway make sure you have same set of rules
Title: Re: .htaccess redirect issue with directory listing
Post by: Sam_78 on August 23, 2019, 09:26:43 AM
I am using that same .htaccess and contacted host they are saying something is wrong with .htaccess if I remove .htaccess my website shows list of directories. I am wondering why is my home page saying 'page not found' where as website.com/index.php works correctly
Title: Re: .htaccess redirect issue with directory listing
Post by: llegrand on August 23, 2019, 10:24:58 AM
Looking up your domain info -  looks like you're on a Windows server.   Did you use GoDaddy's Installatron  for your installation or did you do it manually?

Title: Re: .htaccess redirect issue with directory listing
Post by: HADY on August 23, 2019, 10:33:55 AM
HI!

everything is working fine on your website :D I think you have to clean your browser cache.



regards
Title: Re: .htaccess redirect issue with directory listing
Post by: Sam_78 on August 23, 2019, 04:50:19 PM
Actually I escalated this issue for web hosting and they figured out the issue they went to WHM and set directory priority for index.html at first position and it worked correctly.
Title: Re: .htaccess redirect issue with directory listing
Post by: Basara on August 27, 2019, 08:30:59 AM
thank you for info  ;)