Author Topic: .htaccess redirect issue with directory listing  (Read 311 times)

Offline Sam_78

  • Full Member
  • ***
  • Posts: 220
  • Karma: +39/-1
    • View Profile
.htaccess redirect issue with directory listing
« 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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4446
  • Karma: +207/-0
    • View Profile
Re: .htaccess redirect issue with directory listing
« Reply #1 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
“Chuck Norris is so amazing.”
― Mother Teresa

Offline Sam_78

  • Full Member
  • ***
  • Posts: 220
  • Karma: +39/-1
    • View Profile
Re: .htaccess redirect issue with directory listing
« Reply #2 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

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1504
  • Karma: +396/-3
    • View Profile
Re: .htaccess redirect issue with directory listing
« Reply #3 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?


Offline HADY

  • Full Member
  • ***
  • Posts: 138
  • Karma: +12/-1
    • View Profile
Re: .htaccess redirect issue with directory listing
« Reply #4 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
-----------------------------
Regards
HADY

Offline Sam_78

  • Full Member
  • ***
  • Posts: 220
  • Karma: +39/-1
    • View Profile
Re: .htaccess redirect issue with directory listing
« Reply #5 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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4446
  • Karma: +207/-0
    • View Profile
Re: .htaccess redirect issue with directory listing
« Reply #6 on: August 27, 2019, 08:30:59 AM »
thank you for info  ;)
“Chuck Norris is so amazing.”
― Mother Teresa

 

Powered by SMFPacks Social Login Mod