Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Unable to view certain files after store moved to root directory

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-23-2016, 08:26 AM
 
Salty Salty is offline
 

Member
  
Join Date: Aug 2007
Posts: 19
 

Exclamation Unable to view certain files after store moved to root directory

Wasn't sure if I should start a new thread on this or not, but I did run into a new issue now that I've moved the store into the root.

None of the files originally located in the root can be viewed now without causing a Page Not Found error.

We had multiple share and reference files that we gave our customers access to that need to be able to get to these areas. Anyone know of a fix or a reference I can look at to correct this?
__________________
X-Cart version 5.2.13
http://www.AdvancedGraphicsInc.com
Reply With Quote
  #2  
Old 02-23-2016, 10:20 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Unable to view certain files after store moved to root directory

What is the URL that should download a file, but gives the 404 Not Found error instead?
What is the sever path to the file and what is the server path to the directory with X-Cart 5?
What are file permissions set for the file?
What is in your "[host_details]" section in the [xc5]/etc/config.php file?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 02-24-2016, 03:42 AM
 
Salty Salty is offline
 

Member
  
Join Date: Aug 2007
Posts: 19
 

Default Re: Unable to view certain files after store moved to root directory

Quote:
Originally Posted by qualiteam
What is the URL that should download a file, but gives the 404 Not Found error instead?
What is the sever path to the file and what is the server path to the directory with X-Cart 5?
What are file permissions set for the file?
What is in your "[host_details]" section in the [xc5]/etc/config.php file?
Here's the host details under config.php:

http_host = "www.advancedgraphicsinc.com"
https_host = "www.advancedgraphicsinc.com"
web_dir = ""
domains = ""
admin_self = "admin.php"
cart_self = "cart.php"

All of the files are in their own directories under the root.

XC5 was moved from a directory into the root, it was originally under /shop

So it went from www.advancedgraphicsinc.com/shop

to

www.advancedgraphicsinc.com

Any directory that was already under the root, such as the ones below, act as if they're part of the store:

You can go to www.advancedgraphicsinc.com/ace
or to www.advancedgraphicsinc.com/wholesale
or to www.advancedgraphicsinc.com/walmart


With one exception. Our other XC store (which is XC 4) is working fine and seems unaffected, is under /store:

www.advancedgraphicsinc.com/store
__________________
X-Cart version 5.2.13
http://www.AdvancedGraphicsInc.com
Reply With Quote
  #4  
Old 02-24-2016, 06:36 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Unable to view certain files after store moved to root directory

Ah, this is probably due to X-Cart's rewrite rules in .htaccess.

For each of those directories, what is the directory index? index.html? index.php?

Add this indexes into your .htaccess file and it should work fine.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #5  
Old 02-24-2016, 04:07 PM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Unable to view certain files after store moved to root directory

I believe I just saw a support ticket for that issue.
Yes, the problem is that DirectoryIndex directives are missing in .htaccess'es.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:48 AM.

   

 
X-Cart forums © 2001-2020