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

site at localhost not know css

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-07-2014, 07:38 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default site at localhost not know css

Hi x-cart team!

I was run my site at local host but it not know css. Where are file link css into site?
please help
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #2  
Old 09-08-2014, 09:20 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: site at localhost not know css

Have you edited etc/config.php to point to the new location?
__________________
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
  #3  
Old 09-08-2014, 05:49 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default Re: site at localhost not know css

Hi x-cart team!

Yes I was point to the new location at host_details and SQL Database details. But it not link css. Please help

Quote:
[host_details]
;http_host = "www.cdworlds.com"
;https_host = "secure.cdworlds.com"
http_host = "http://localhost/x-carts/cdworlds.com/"
web_dir = ""
domains = ""

Quote:
[database_details]
hostspec = "localhost"
socket = ""
port = ""
database = "cdworlds_xcart"
;username = "***********"
;password = "***********"
username = "root"
password = ""
table_prefix = "xc_"
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #4  
Old 09-08-2014, 06:11 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: site at localhost not know css

Try
Code:
[host_details] http_host = "localhost" web_dir = "/x-carts/cdworlds.com/" domains = ""
__________________
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 user thanks totaltec for this useful post:
qualiteam (09-08-2014)
  #5  
Old 09-08-2014, 08:23 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: site at localhost not know css

Quote:
Originally Posted by Chheang Leng
Yes I was point to the new location at host_details and SQL Database details. But it not link css. Please help

Mike is right. The "http_host" setting should be the domain name only, and the rest of the URL should go into the "web_dir" one.
__________________
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
  #6  
Old 09-08-2014, 09:35 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default Re: site at localhost not know css

Hi x-cart team!

It have link css but it error at categories link after I visited it. The page say not found but at server not error. I was full backup. This at localhost have error link and server not error.
please help
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #7  
Old 09-09-2014, 06:16 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: site at localhost not know css

Check the .htaccess file and make sure that RewriteBase points to the same web directory that is specified in your etc/config.php
__________________
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

The following user thanks qualiteam for this useful post:
totaltec (09-09-2014)
  #8  
Old 09-09-2014, 06:35 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default Re: site at localhost not know css

Hi x-cart team!

I see rewritebase at .htaccess file. How to change it? Are you have sample to change it?
Quote:
<IfModule mod_rewrite.c>
#Header set mod_rewrite_works "yes"
RewriteEngine on

RewriteRule (^|/)\. - [F]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^((([/_a-z0-9-]+)/)?([_a-z0-9-]+)/)?([_a-z0-9-]+)(\.(htm|html))?$ cart.php?url=$5&last=$4&rest=$3&ext=$7 [NC,L,QSA]

RewriteBase /
</IfModule>
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #9  
Old 09-09-2014, 08:24 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: site at localhost not know css

As Alex said, just point it to the directory where your store is located.

In your case I think it is:
RewriteBase /x-carts/cdworlds.com
__________________
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
  #10  
Old 09-09-2014, 09:23 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default Re: site at localhost not know css

Hi x-cart team!

I was change it but it not run(page not found). In my site it view many item but it not view more detail item. Please help
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 not 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 04:11 AM.

   

 
X-Cart forums © 2001-2020