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

HTML Pages Not Being Called

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-16-2008, 08:45 PM
 
pepperlibido pepperlibido is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: Queensland Australia
Posts: 39
 

Default HTML Pages Not Being Called

Have generated HTML catalog and can find it at mynewsite/catalog/index.html however, when one logs on to www.mynewsite.com.au all pages including the catalog and product pages are produced in .php format.

They should be in html, shouldn▓t they?

Feel sure that they were; seem to remember pages being in .html.

Have had a number of mods installed lately. Also deleted my index.html file, hope that▓s ok or could this have something to do with it?

Please help.
__________________
Gerard
Version 4.1.8 Gold
Linux
Server Zeus
Australia
Reply With Quote
  #2  
Old 02-17-2008, 03:18 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: HTML Pages Not Being Called

That's not how the catalog works by default. If you want to use the html catalog (which I really don't recommend) you need to generate it in the root directory. If not, you need to create a redirect to the catalog/ folder. Otherwise, the browser has no idea that it should be looking in the catalog/ folder.

Instead of the html catalog, I suggest one of these mods:

CDSEO
DSEFU
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-17-2008, 03:40 PM
 
pepperlibido pepperlibido is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: Queensland Australia
Posts: 39
 

Default Re: HTML Pages Not Being Called

Thanks Balinor.


When I check the root directory the catalog file is there so don▓t understand why the html pages are not working. Any ideas please?

Re: DSEFU √ It will not work on the server (Zeus) that my host uses.

Re:CDSEO √ Have so far spent more that $200 on mods and installations and don▓t wish to fork out another couple hundred. Will be selling a small number of products and product key words are in domain name so hope this is sufficient.

You say you don▓t recommend the html rout, so in the absence of the above two mods do you recommend that I stick with php or try to sort out the html problem?


Your reply appreciated.
__________________
Gerard
Version 4.1.8 Gold
Linux
Server Zeus
Australia
Reply With Quote
  #4  
Old 02-17-2008, 03:42 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: HTML Pages Not Being Called

Zeus...sorry to hear that

So it looks like you are stuck with the html catalog then. You mentioned above, that your catalog is in the catalog/ directory. By 'root' I mean that you need to generate the catalog in the root of the site, meaning where your cart.php, product.php, etc files are. I DO NOT recommend php file names, as there is absolutely no optimization to them, and it will hurt you. You simply need to generate the html catalog in the root directory daily and set your directory index to index.html.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-17-2008, 06:12 PM
 
pepperlibido pepperlibido is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: Queensland Australia
Posts: 39
 

Default Re: HTML Pages Not Being Called

Yeah.... bummer.

Definitely in the root directory. You say, ⌠Set your directory index to index.html■. I have deleted the index html file in the root directory and from the static pages in my Admin section (built my home page around home.php).Should I reinstate them and if so what goes in the index.html file? Unfortunately I didn▓t keep a copy of the contents. Also▓ what do you mean by ⌠set your directory index to index.html■?
Hope these questions are not too dumb.

Gerard
__________________
Gerard
Version 4.1.8 Gold
Linux
Server Zeus
Australia
Reply With Quote
  #6  
Old 02-17-2008, 06:25 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: HTML Pages Not Being Called

Ok, when you create the html catalog, it should create an index.html file too. Then, you need to tell the browser to look for the index.html file instead of index.php. That should be done in .htaccess (does Zeus use that?).
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 02-17-2008, 07:28 PM
 
pepperlibido pepperlibido is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: Queensland Australia
Posts: 39
 

Default Re: HTML Pages Not Being Called

Yes, Zeus has a hidden htaccess file which I found via ftp


Gerard
__________________
Gerard
Version 4.1.8 Gold
Linux
Server Zeus
Australia
Reply With Quote
  #8  
Old 02-17-2008, 08:03 PM
 
pepperlibido pepperlibido is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: Queensland Australia
Posts: 39
 

Default Re: HTML Pages Not Being Called

Balinor, The following is the total sum of the htacess file:

DirectoryIndex home.php
RewriteEngine On
RewriteRule ^content/(.*)$ pages.php [L]

What should I change it to please.

Gerard
__________________
Gerard
Version 4.1.8 Gold
Linux
Server Zeus
Australia
Reply With Quote
  #9  
Old 02-17-2008, 10:47 PM
 
pepperlibido pepperlibido is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: Queensland Australia
Posts: 39
 

Default Re: HTML Pages Not Being Called

Ok Have tried the following in both the root directory HTACCESS file and the customer folder HTACCESS but they did not work.

Changed htaccess file from: - DirectoryIndex home.php to: - DirectoryIndex home.html

Also tried from: - DirectoryIndex home.php to: - DirectoryIndex .html and Directory Index.html

Still did not work.

Also tried the following in root HTACCESS only, but to no avail.

redirect 301 /home.php http://www.mynewsite.com.au/index.html

redirect 301 /index.php http://www.mynewsite.com.au/index.html

Ready to give up.

Gerard
__________________
Gerard
Version 4.1.8 Gold
Linux
Server Zeus
Australia
Reply With Quote
  #10  
Old 02-18-2008, 04:20 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: HTML Pages Not Being Called

It would be:

DirectoryIndex index.html

But you have to make sure your index.html is present in the root directory. Don't use 301 redirects.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:52 AM.

   

 
X-Cart forums © 2001-2020