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

Subdirectories not resolving when XC5 is installed on the root

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-12-2015, 11:12 PM
 
ant99 ant99 is offline
 

Advanced Member
  
Join Date: Mar 2015
Posts: 39
 

Default Subdirectories not resolving when XC5 is installed on the root

My XC5 installation is on the root of our site i.e. - installed at '/'. We also have a WordPress blog installed at '/blog/'. We also have a Live Chat software installed at '/live/'. The blog & live directory were working properly with XC4, but when we moved and upgraded to XC5 on the root, we're getting Forbidden errors and sometimes the x-cart 404 page is served. How can I get the /blog/ and /live/ directories to resolve properly? Permissions / Ownership have not been changed for any of those files. We are using clean URLs in x-cart.

Here is the /blog/ error.

Code:
Forbidden You don't have permission to access /blog/ on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

When I visit oursite.com/live the URL is redirected to oursite.com/live/?url=live&last=&rest=&ext=. The page I see there is the x-cart 404 page.

Any thoughts?
__________________
Ant

XC v5.3.1.8
Horizontal Flyout Categories Menu Module
CloudSearch / CloudFilters

XC v4.7.6
CloudSearch
Reply With Quote
  #2  
Old 03-18-2015, 06:16 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Subdirectories not resolving when XC5 is installed on the root

It works properly on my fresh installation of 5.1.11.
Could you please let me know the content of your .htaccess file from X-Cart's root?
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #3  
Old 01-22-2016, 02:21 PM
 
ant99 ant99 is offline
 

Advanced Member
  
Join Date: Mar 2015
Posts: 39
 

Default Re: Subdirectories not resolving when XC5 is installed on the root

Sorry for the delay Tony, but this is still a problem we're running into. Here is the HTACCESS file from the root.

Code:
# vim: set ts=2 sw=2 sts=2 et: # # Apache/PHP settings # # @author Qualiteam software Ltd <info@x-cart.com> # @copyright Copyright (c) 2010-2014 Qualiteam software Ltd <info@x-cart.com>. All rights reserved # @license http://www.x-cart.com/license-agreement.html X-Cart 5 License Agreement # @link http://www.x-cart.com/ Options -Indexes DirectoryIndex cart.php FileETag none <IfModule mod_rewrite.c> RewriteEngine on # #BUG-772 Add HTTP_AUTHORIZATION header for fastCGI (need for XC\Qiwi) RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] RewriteRule (^|/)\. - [F] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^sitemap.xml(\?.+)?$ cart.php?target=sitemap [NC,L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^((([/_a-z0-9-]+)/)?([_a-z0-9-]+)/)?([_a-z0-9-]+)(/?)(\.([_a-z0-9-]+))?$ cart.php?url=$5&last=$4&rest=$3&ext=$7 [NC,L,QSA] RewriteBase / </IfModule> <IfModule mod_expires.c> # Expire images/js/css header ExpiresActive On ExpiresDefault A0 # Images expires in 2 weeks ExpiresByType image/png A1209600 ExpiresByType image/gif A1209600 ExpiresByType image/jpg A1209600 ExpiresByType image/jpeg A1209600 ExpiresByType image/ico A1209600 ExpiresByType image/x-icon A1209600 # CSS/JS now work with dynamic unique query string. 1 year expires ExpiresByType text/css A31104000 ExpiresByType text/javascript A31104000 ExpiresByType application/javascript A31104000 </IfModule>
__________________
Ant

XC v5.3.1.8
Horizontal Flyout Categories Menu Module
CloudSearch / CloudFilters

XC v4.7.6
CloudSearch
Reply With Quote
  #4  
Old 01-22-2016, 05:59 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Subdirectories not resolving when XC5 is installed on the root

ant99,
There is another forum thread for this somewhere. But look here near the bottom of the page for an explanation: http://xcartguru.com/knowledge-base/x-cart-5-kb/
__________________
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

The following 3 users thank totaltec for this useful post:
ant99 (02-16-2016), kevfromwiganinlancashire (01-23-2016), razortw (02-05-2016)
  #5  
Old 01-27-2016, 02:24 PM
 
ant99 ant99 is offline
 

Advanced Member
  
Join Date: Mar 2015
Posts: 39
 

Default Re: Subdirectories not resolving when XC5 is installed on the root

Hi Mike,

That worked out perfectly, and solved the problem. Very simple fix. Thank you guru!
__________________
Ant

XC v5.3.1.8
Horizontal Flyout Categories Menu Module
CloudSearch / CloudFilters

XC v4.7.6
CloudSearch
Reply With Quote
  #6  
Old 11-07-2017, 03:23 AM
 
Byron Byron is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 3
 

Default Re: Subdirectories not resolving when XC5 is installed on the root

Quote:
Originally Posted by totaltec
ant99,
There is another forum thread for this somewhere. But look here near the bottom of the page for an explanation: http://xcartguru.com/knowledge-base/x-cart-5-kb/

Hi, I'm having this exact problem, but the link above with a solution no longer works.

X-cart is installed in the root, /blog gives me a 404 error.

All help appreciated

My htaccess looks like this:
Code:
# Clean URLs [[[ Options +FollowSymLinks -MultiViews -Indexes <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/(payment|admin|provider|partner)/ RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|swf|php|ico)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ dispatcher.php [L] </IfModule> # /Clean URLs ]]]
__________________
Version v5.3
Reply With Quote
  #7  
Old 11-09-2017, 09:45 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Subdirectories not resolving when XC5 is installed on the root

Quote:
Originally Posted by Byron
Hi, I'm having this exact problem, but the link above with a solution no longer works.

Your signature states that you use X-Cart 4, not X-Cart 5 being discussed in this forum thread.
What X-Cart version you need a solution for?
__________________
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
  #8  
Old 11-10-2017, 02:40 AM
 
Byron Byron is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 3
 

Default Re: Subdirectories not resolving when XC5 is installed on the root

Hi, apologies I hadn't updated my signature.

I'm using version 5.
__________________
Version v5.3
Reply With Quote
  #9  
Old 11-13-2017, 06:02 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Subdirectories not resolving when XC5 is installed on the root

.htaccess in my local X-Cart 5.3.4.1 installation is different.

Or is it the Wordpress' .htaccess file from /blog directory? If so, you should tweak the .htaccess in the web root directory and make it not redirect URLs starting with /blog to the X-Cart script.
__________________
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
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:33 PM.

   

 
X-Cart forums © 2001-2020