X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   site at localhost not know css (https://forum.x-cart.com/showthread.php?t=69948)

Chheang Leng 09-07-2014 07:38 PM

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

totaltec 09-08-2014 09:20 AM

Re: site at localhost not know css
 
Have you edited etc/config.php to point to the new location?

Chheang Leng 09-08-2014 05:49 PM

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_"


totaltec 09-08-2014 06:11 PM

Re: site at localhost not know css
 
Try
Code:

[host_details]
http_host = "localhost"
web_dir = "/x-carts/cdworlds.com/"
domains = ""


qualiteam 09-08-2014 08:23 PM

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.

Chheang Leng 09-08-2014 09:35 PM

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

qualiteam 09-09-2014 06:16 AM

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

Chheang Leng 09-09-2014 06:35 PM

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>


totaltec 09-09-2014 08:24 PM

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

Chheang Leng 09-09-2014 09:23 PM

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


All times are GMT -8. The time now is 09:46 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.